Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

O = peakdetect_gui( y, x );

Parameters

In the GUI, set these then "Run" to re-calculate peaks. This will overwrite any manual peak editing you did.

ParameterMeaningChange
mawindowwindow length for moving averagereduce to allow for faster baseline trend changes
decaytimeconstpk decay time constant for peaksreduce to detect more peaks; this determines how fast the peak threshold decays down from the previous peak towards.
decaytimeconsttrdecay time constant for troughsreduce to detect more troughs; this determines how fast the peak threshold decays up from the previous trough.
threshlimpk percent of peak height above moving average mean (sets lower bound for peak decay)decrease to detect more peaks (can be negative)
threshlimtrpercent of trough depth below moving average mean (sets upper bound for trough decay)decrease to detect more peaks (can be negative)
flagmininterval flag for using/not using mininternvalset to 0 for not using (useful if you want to have a flags structure to test, but don't want to constantly change or remove "mininterval")
mininterval minimum interval allowed between peaks (or troughts)set so that no non-physiologic values are found (e.g. in seconds, 0.25 ~ 4 Hz ~ 240 bpm)

...