TEAP (Toolbox for Emotion Analysis using Physiological Signals) doc
|
Go to the source code of this file.
Functions | |
function | correctBPM (in listePic_in, in fe, in thresh) |
DEPENDANCIES : PICtoBPM : compute BPM from of vector of peaks Guillaume Chanel (thanks to Joep) 4/09/2008
Definition in file correctBPM.m.
function correctBPM | ( | in | listePic_in, |
in | fe, | ||
in | thresh | ||
) |
listePic_in | [1*N] : vector of peaks with position of peak in sample for each peak ([1 8 20] 3 peaks at samples 1, 8 and 20) |
fe | ampling frequency |
thresh | limit between two peaks for detection of miss or bad peak. decreasing this limit will not always augment the number of corrections (see First step, Decide which problems are true ones in the code) |
bpm | new computed bpm from the corrected list of peaks |
listPic | corrected list of peaks |