TEAP (Toolbox for Emotion Analysis using Physiological Signals) doc
correctBPM.m File Reference

Go to the source code of this file.

Functions

function correctBPM (in listePic_in, in fe, in thresh)
 

Detailed Description

DEPENDANCIES : PICtoBPM : compute BPM from of vector of peaks Guillaume Chanel (thanks to Joep) 4/09/2008

Definition in file correctBPM.m.

Function Documentation

◆ correctBPM()

function correctBPM ( in  listePic_in,
in  fe,
in  thresh 
)
Parameters
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)
feampling frequency
threshlimit 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)
Return values
bpmnew computed bpm from the corrected list of peaks
listPiccorrected list of peaks