|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
inlinenoexcept |
Threshold crossings per second within a window.
| values | Chronological span, at least two entries |
| threshold | Level whose crossings are counted |
| dt | Seconds per sample |
A rate in seconds against an arbitrary level, where Discrete::zero_crossing_rate is normalized per sample and windowed into a vector. Both count the same events; this is the shape a per-update scalar measure needs.
Counts crossings in both directions, so a value oscillating about the threshold reports twice the rate of its underlying cycle. Halve the result when the intended quantity is cycles rather than transitions.
Definition at line 132 of file TemporalMeasures.hpp.