|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
inline |
Test a candidate value and return the value to actually use.
| candidate | Newly computed value, typically straight out of a Kinesis::Differential function |
The first call and the next (window - 1) calls always accept, since MAD is not meaningful against a window that has not yet filled with real data; a held value from an uninitialized filter would be an arbitrary default, not a real prior reading.
Definition at line 98 of file HampelFilter.hpp.
References MayaFlux::Kinesis::HampelFilter< T >::m_consecutive_rejections, MayaFlux::Kinesis::HampelFilter< T >::m_has_history, MayaFlux::Kinesis::HampelFilter< T >::m_history, MayaFlux::Kinesis::HampelFilter< T >::m_last_good, MayaFlux::Kinesis::HampelFilter< T >::m_max_consecutive_rejections, MayaFlux::Kinesis::HampelFilter< T >::m_sample_count, MayaFlux::Kinesis::HampelFilter< T >::m_threshold_mad, and MayaFlux::Kinesis::HampelFilter< T >::magnitude_of().
Here is the call graph for this function: