...
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.
Parameter | Meaning | Change |
---|---|---|
mawindow | window length for moving average | reduce to allow for faster baseline trend changes |
decaytimeconstpk | decay time constant for peaks | reduce to detect more peaks; this determines how fast the peak threshold decays down from the previous peak towards. |
decaytimeconsttr | decay time constant for troughs | reduce 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) |
threshlimtr | percent 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 mininternval | set 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) |
...