Filters 1.0
LPF, HPF, BPF, BSF, SRL
Loading...
Searching...
No Matches
lpf_2.h File Reference

Second-order low-pass filter. More...

#include <cstdint>
#include <cmath>
#include "../../src/low_pass/lpf_2.tpp"
Include dependency graph for lpf_2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  filter::low_pass::LPF_2< T >
 Second-order low-pass filter. More...

Namespaces

namespace  filter
 Contains digital signal filtering algorithms.
namespace  filter::low_pass
namespace  low_pass
 Contains low-pass filter implementations.

Detailed Description

Second-order low-pass filter.

This file defines the filter::low_pass::LPF_2 class, which implements a discrete-time second-order low-pass filter.

The filter attenuates high-frequency components of an input signal while allowing low-frequency components to pass. The implementation uses a prewarped cutoff frequency for the digital filter design.

The filter maintains previous input and output samples as internal state variables.

The class is templated to support different numeric types such as float and double.

Template Parameters
TNumeric data type used for the filter calculations.
Author
Abhinay Kumar
Version
1.0.0

Definition in file lpf_2.h.