class::calc::SimpleFilter

class calc::SimpleFilter
  : public api::InfoObject

Summary

[SimpleFilter](#classcalc_1_1_simple_filter_1adc1eb63592e510d2bf5e6676c2391d29)()

T calculate(

T a
)

C & operator<<(

T a
)

T present_value() const

void set_present_value(

const T & value
)

protected T m_present_value

Members

SimpleFilter()

T calculate(

T a
)

Calculates the next value based on the given input and returns the new average value.


C & operator<<(

T a
)

Calculates the next value and returns a reference to this object.


T present_value() const

Returns a copy of the present value.


void set_present_value(

const T & value
)

Sets the present value of the filter.


protected T m_present_value

X

Thanks for Coming!

Subscribe to news and updates