Template Class MultiChannelTransferFunctionFilter
Defined in File transfer_function.hpp
Inheritance Relationships
Base Type
public filters::MultiChannelFilterBase< T >
(Template Class MultiChannelFilterBase)
Class Documentation
-
template<typename T>
class MultiChannelTransferFunctionFilter : public filters::MultiChannelFilterBase<T> One-dimensional digital filter class.
This class calculates the output for
one-dimensional digital filters. Where the input, , is a ( x 1) vector of inputs and the output, , is a ( x 1) vector of outputs. The filter is described by vectors and and implemented using the standard difference equation:If
is not equal to 1, the coefficients are normalized by .Example xml config:
<filter type=”MultiChannelTransferFunctionFilter” name=”filter_name”>
<params a=”1.0 0.5” b=”0.2 0.2”>
</filter>Public Functions
-
MultiChannelTransferFunctionFilter()
Construct the filter.
-
~MultiChannelTransferFunctionFilter() override
Destructor to clean up.
-
virtual bool configure() override
Configure the filter with the correct number of channels and params.
- Parameters:
number_of_channels – The number of inputs filtered.
config – The xml that is parsed to configure the filter.
Protected Attributes
-
std::unique_ptr<RealtimeCircularBuffer<std::vector<T>>> input_buffer_
The input sample history.
-
std::unique_ptr<RealtimeCircularBuffer<std::vector<T>>> output_buffer_
The output sample history.
-
std::vector<double> a_
Transfer functon coefficients (output).
-
std::vector<double> b_
Transfer functon coefficients (input).
-
MultiChannelTransferFunctionFilter()