|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
inlinenoexcept |
Velocity averaged over a short window rather than a single interval.
| T | Sample type |
| history | Buffer with capacity >= window + 1 |
| dt | Elapsed time between consecutive samples |
| window | Number of intervals to average over, minimum 1 |
A single backward_difference<1> reading is sensitive to jitter on any one sample pair. Averaging several consecutive one-step differences trades responsiveness for stability, useful when the source stream (tablet, camera-derived tracking) carries sensor noise that would otherwise alias into a spurious high-frequency acceleration or jerk reading downstream.
Definition at line 213 of file Differential.hpp.
Referenced by smoothed_velocity().
Here is the caller graph for this function: