11 #ifndef __HYSTERESIS_HEADER
12 #define __HYSTERESIS_HEADER
15 #include "../../util/mean_trait.hpp"
24 template<
typename T,
unsigned W,
typename _base =
identity_filter<T> >
44 T temp = base::value();
46 if(temp > val_ + (T)W)
49 if(temp + (T)W < val_)
67 template<typename T, typename _base,
unsigned W>
72 #endif //__HYSTERESIS_HEADER
Definition: hysteresis.hpp:25
S & operator<<(S &os, oss_class< D, max_buf > const &arg)
Definition: serializer.hpp:158
hysteresis_filter()
Definition: hysteresis.hpp:29
hysteresis_filter & operator=(T const &in)
Definition: hysteresis.hpp:36
#define EMPTY_FILTER(NAME, VALUE)
Definition: realization.hpp:22
hysteresis_filter< T, W, _base > type
Definition: hysteresis.hpp:69
T value() const
Definition: hysteresis.hpp:55
Definition: realization.hpp:19
hysteresis_filter(T const &arg)
Definition: hysteresis.hpp:33
hysteresis_filter & operator<<(T const &in)
Definition: hysteresis.hpp:41
hysteresis_filter(hysteresis_filter const &arg)
Definition: hysteresis.hpp:31