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

Second-order band-stop filter. More...

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

Go to the source code of this file.

Classes

class  filter::band_stop::BSF_2< T >
 Second-order band-stop filter. More...

Namespaces

namespace  band_stop
 Contains band-stop filter implementations.
namespace  filter
 Contains digital signal filtering algorithms.
namespace  filter::band_stop

Detailed Description

Second-order band-stop filter.

This file defines the filter::band_stop::BSF_2 class, which implements a discrete-time second-order band-stop filter.

The filter attenuates frequency components within a specified frequency band while allowing frequencies below and above the stopband to pass.

The filter is parameterized by its center frequency, bandwidth, and sampling time. The quality factor is derived from the center frequency and bandwidth.

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

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 bsf_2.h.