class::calc::LowPassFilterF32

class calc::LowPassFilterF32
  : public calc::SimpleFilter< float, LowPassFilterF32 >

See LowPassFilter for details

Summary

LowPassFilterF32(

float start,
float alpha
)

float calculate(

float in
)

float calculate_alpha(

float sampling_frequency,
float magnitude
)

void reset(

float start
)

void set_alpha(

float value
)

Members

LowPassFilterF32(

float start,
float alpha
)

Constructs a EMA object for floating point calculations


float calculate(

float in
)


float calculate_alpha(

float sampling_frequency,
float magnitude
)

Calculates the alpha value for the given magnitude (impulse response) and sampling frequency.


void reset(

float start
)


void set_alpha(

float value
)

Sets the filtering value.

Parameters

  • value The alpha value for the filter (0.0f to 1.0f)

When alpha is 1.0f, no filtering is applied. The closer alpha is to 0.0f, the lower the cutoff frequency is for the filter.


X

Thanks for Coming!

Subscribe to news and updates