|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| double MayaFlux::Kinesis::Stochastic::Estimate::confidence | ( | double | step | ) | const |
Confidence that a step is signal, not floor.
| step | Difference in the same units as floor(): a per-sample change, e.g. raw_sample - value(), or any other quantity measured in the same units the stream itself is in. |
step and floor() must be the same physical quantity. floor() is a static spread (units of the stream itself, e.g. position), not a rate. Passing a Kinesis::Differential velocity or acceleration here compares a rate against a static spread, which are different units and produces a meaningless, typically saturated result: a velocity is often numerically enormous relative to a small per-sample floor regardless of whether the motion is real signal or noise, since dividing by dt inflates the value independent of confidence. For a Differential-derived rate, use confidence_of_rate() instead, which performs the correct rate-to-step conversion before comparing.
Not a hard threshold. A caller wanting a binary decision picks their own cutoff against this; Estimate only reports where the step sits relative to the learned floor.
Definition at line 55 of file Estimate.cpp.
References MayaFlux::Kinesis::Stochastic::EstimateState::floor, and m_state.