Template Class Butterworth

Class Documentation

template<uint8_t ORDER, FilterType Type = LOWPASS, typename T = float>
class Butterworth

Public Functions

inline constexpr Butterworth(double wc, double Ts, double wh = 0.0)
Parameters:
  • wc[in] for LOW/HIGHPASS: cutoff ωc. for BANDPASS/BANDSTOP: lower edge ωl.

  • Ts[in] sample time.

  • type[in] filter type, LOWPASS, HIGHPASS, BANDPASS, BANDSTOP. defaults to LOWPASS.

  • wh[in] upper edge ωh (only used for band filters).

inline std::array<T, COEFFICIENTS> getNaturalResponseCoefficients() const
inline std::array<T, COEFFICIENTS> getForcedResponseCoefficients() const

Public Static Attributes

static constexpr int COEFFICIENTS = (1 + ((Type & 0b10) != 0)) * ORDER + 1