Giter Site home page Giter Site logo

sfatoolbox's Introduction

SFAToolbox

Main files: 📁

#GUI:

  • SFAToolbox.m : .m file of the graphical user interface.
  • SFAToolbox.fig : Graphical user interface.

-Filtering:-

Band    = (2 / SR) * [45, 55];
[B, A]  = butter(4, Band, 'stop');
block_duration_datacorrected_last = filtfilt(B, A, double(block_duration_datacorrected));
N=length(block_duration_datacorrected_last);         %number of points
t=(0:N-1)/SR;   %time vector
sgf = sgolayfilt(block_duration_datacorrected_last,3,201);
ynew=sgf/max(sgf); 
% initialize filtered signal
eogF = ynew;

-Teager–Kaiser energy operator to obtain EMG Bursts:-

for i=2:length(eogF)-1
    eogF(i) = ynew(i)^2 - ynew(i-1)*ynew(i+1);
end   
    

-Wavelet transform to get swallow patterns and RMS for burst detection:-

[c,l] = wavedec(eogF,7,'sym4'); % 8 level decomposition  
for t=1:7
    A(:,t)=wrcoef('a',c,l,'sym4',t);
end
A8=A(:,7);
rmsSwallows = sqrt(movmean(A8_.^2, 2500));

Data File:

  • sampledata.mat: sample recording.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.