Code covered by the BSD License  

Highlights from
FeatureFinder 2.4.1

image thumbnail

FeatureFinder 2.4.1

by

 

20 Aug 2012 (Updated )

A user-friendly tool for signal filtering and feature extraction. Well-suited to large data sets!

nFeature=DifferenceOfAverages(nData,Fs,nBL_Range,nTarg_Range)
function nFeature=DifferenceOfAverages(nData,Fs,nBL_Range,nTarg_Range)

% Feature description
if nargin==0
    nFeature='The difference between the mean amplitudes of the target and baseline windows.';
    return
end

% Compute window amplitudes
nTarg_Amp=mean(nData(nTarg_Range));        
nBL_Amp=mean(nData(nBL_Range));

% Compute difference of averages
nFeature=nTarg_Amp-nBL_Amp;

Contact us