34#define B0 0.292893218813452
35#define B1 0.585786437626905
36#define B2 0.292893218813452
38#define A2 0.171572875253810
39#define DESIGN_FREQUENCY 0.25
42template <
class datatype,
class basetype>
class pt2
68 delta = (
ONE + a1 + a2) / (b0 + b1 + b2);
82 datatype x = input - old * a1 - very_old * a2;
83 output = x * b0 + old * b1 + very_old * b2;
void settle(const datatype &present_input)
pt2(basetype fcutoff)
constructor taking Fc/Fs
datatype get_output(void) const
datatype get_last_input(void) const
datatype respond(const datatype &input)
mathematical vector of arbitrary type and size
defines platform-dependent algorithms and constants
ring buffer helper class (template)