IsFinite Filter¶
-
template<typename T>
struct IsFinite¶ Filter that only accepts finite floating-point values (not
NaNorInf).This filter propagates changes only when the new value is a valid finite number, filtering out
NaN(Not a Number) andInfinityvalues.- Since
v0.1.0
// Example: Only propagate valid sensor readings Signal<float, 10, IsFinite<float>> sensor(0.0);Warning
Only accepts floating-point types (
float,double).
See Also¶
Numerical Filters - Overview