Configuration object for peak detection containing:
An array of detected peaks with their positions and directions:
const peaks = findSignals({
values: [101, 102, 99, 101, 102, 107, 109, 105, 102, 100, 97, 95, 97],
config: { lag: 5, threshold: 2.5, influence: 0.5 }
});
Generated using TypeDoc
Finds signals representing significant changes or anomalies in a numeric time series.
The function uses Z-Score based peak detection to identify periods where values deviate significantly from the moving average, indicating potential market turning points or trend changes.