Skip to content

Filters

Luis Llamas edited this page Apr 25, 2019 · 9 revisions

Filter OnRising

Emits item if is greater than previous received item

OnRising()

Filter OnFalling

Emits item if is smaller than previous received item

OnFalling()

Filter MovingAverage

Emits the moving average of received items

MovingAverage(size_t N)

Filter MovingRMS

Emits the moving RMS of received items

MovingAverage(size_t N)

Filter Median3

Emits the median of three latest received items

Median3()

Filter Median5

Emits the median of five latest received items

Median5()

Filter LowPass

Emits the low pass filter of the received items

LowPass(const double alpha)

Filter HighPass

Emits the high pass filter of the received items

HighPass(const double alpha)

Filter StopBand

Emits the stop band filter of the received items

StopBand(const double alpha1, const double alpha2)

Filter PassBand

Emits the pass band filter of the received items

PassBand(const double alpha1, const double alpha2)

Filter Debounce

Ignore items received after a time interval

Millis version

DebounceMillis(const unsigned long interval)

Micros version

DebounceMicros(const unsigned long interval)

Filter Window

Emits items received within a time interval

Millis version

WindowMillis(const uint8_t num, const unsigned long interval)

Micros version

WindowMicros(const uint8_t num, const unsigned long interval)

Filter IsLessOrEqual

Emits received items if is less or equal than a value

IsLessOrEqual(T value)

Filter IsLess

Emits received items if is less than a value

IsLess(T value)

Filter IsGreaterOrEqual

Emits received items if is great or equal than a value

IsGreaterOrEqual(T value)

Filter IsGreater

Emits received items if is great than a value

IsGreater(T value)

Filter IsEqual

Emits received items if is equal to a value

IsEqual(T value)

Filter IsNotEqual

Emits received items if is not equal to a value

IsNotEqual(T value)

Filter IsZero

Emits received items if is equal zero

IsZero(T value)

Filter IsNotZero

Emits received items if is not equal zero

IsNotZero(T value)