|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
inlinenoexcept |
Mean absolute difference between consecutive samples, per second.
| values | Chronological span, at least two entries |
| dt | Seconds per sample |
Agitation independent of direction and of where the value sits. A quantity oscillating rapidly within a narrow band and one holding still have similar means and similar ranges and very different roughness, and a quantity sweeping smoothly across its whole range has a large variance and a small roughness.
Distinct from two existing measures that sound related. Not Discrete::mad, which is median absolute deviation about a centre and measures spread, not step size. Not Estimate::trend_explained_ratio, which asks what fraction of a window's variance its own linear trend accounts for and answers signal against noise around that trend; roughness answers nothing about a trend and reports the same value whether the steps are around a fixed point or along a steady climb. A window can score high on both: a value climbing steadily in small jittery increments has both a high trend-explained ratio and, if the increments are large relative to the climb's own rate, high roughness.
Definition at line 63 of file TemporalMeasures.hpp.
References values.