public class PeakPicker
extends java.lang.Object
| Constructor and Description |
|---|
PeakPicker(double threshold)
Initializes a new moving mean adaptive threshold peak picker.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getLastPeekValue() |
boolean |
pickPeak(float onset)
Modified version for real time, moving mean adaptive threshold this
method is slightly more permissive than the off-LineWavelet one, and yields to
an increase of false positives.
|
void |
setThreshold(double threshold)
Sets a new threshold.
|
public PeakPicker(double threshold)
threshold - The threshold defines when a peak is selected. It should be
between zero and one, 0.3 is a reasonable value. If too many
peaks are detected go to 0.5 - 0.8.public void setThreshold(double threshold)
threshold - The threshold defines when a peak is selected. It should be
between zero and one, 0.3 is a reasonable value. If too many
peaks are detected go to 0.5 - 0.8.public boolean pickPeak(float onset)
onset - The new onset value.public float getLastPeekValue()