|
MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
|
| std::vector< size_t > MayaFlux::Kinesis::Discrete::peak_positions | ( | std::span< const double > | data, |
| double | threshold = 0.0, |
||
| size_t | min_distance = 1 |
||
| ) |
Sample indices of local peak maxima in the full span.
A peak at index i satisfies: |data[i]| > threshold, |data[i]| >= |data[i-1]|, |data[i]| >= |data[i+1]|, and i - last_peak >= min_distance.
| data | Input span |
| threshold | Minimum absolute value to qualify as a peak |
| min_distance | Minimum sample gap between accepted peaks |
Definition at line 646 of file Analysis.cpp.
References a, and peak_positions().
Referenced by MayaFlux::Yantra::extract_peaks(), and peak_positions().
Here is the call graph for this function:
Here is the caller graph for this function: