33 #ifndef _NSOUND_FILTER_LEAST_SQUARES_FIR_H_
34 #define _NSOUND_FILTER_LEAST_SQUARES_FIR_H_
56 const Buffer & amplitude_axis,
119 plot(
boolean show_fc =
true,
boolean show_phase =
false);
132 const Buffer & amplitude_axis);
void makeKernel(const Buffer &freq_axis, const Buffer &litude_axis)
virtual ~FilterLeastSquaresFIR()
AudioStream filter(const AudioStream &x)
void setWindow(WindowType type)
void plot(boolean show_fc=true, boolean show_phase=false)
AudioStream filter(const AudioStream &x, const Buffer &frequencies)
Buffer getKernelFrequencies()
Buffer getImpulseResponse(const uint32 n_samples=8192)
Buffer getImpulseResponse()
Base class for IIR Filters, defines the interface.
Buffer filter(const Buffer &x, const Buffer &frequencies)
FilterLeastSquaresFIR(const float64 &sample_rate, uint32 kernel_size, const Buffer &freq_axis, const Buffer &litude_axis, const float64 &beta=5.0)
FilterLeastSquaresFIR & operator=(const FilterLeastSquaresFIR &rhs)
AudioStream filter(const AudioStream &x, const float64 &frequency)
Buffer getKernelAmplitudes()
Buffer filter(const Buffer &x, const float64 &frequency)
A Buffer for storing audio samples.
A FIR filter that is defined as the least square error to the desired requency response.
float64 filter(const float64 &x, const float64 &frequency_Hz)
void setKernel(const Buffer &k)