Constructor and Description |
---|
IirfFilter(int channel,
double sampleRate,
FilterParams filterParams) |
Modifier and Type | Method and Description |
---|---|
int |
getFilterDelay()
Gets the delay of the filter - rarely used, but can be important
for some processing tasks.
|
FilterMethod |
getFilterMethod() |
void |
prepareFilter()
Calculates the poles and zeros for the filter and sets up any memory
buffers required during real time operation.
|
double |
runFilter(double aData)
Runs the filter on a single data value
|
void |
runFilter(double[] inputData)
Runs the filter on an array of data
|
void |
runFilter(double[] inputData,
double[] outputData)
Runs the filter on an array of data
|
void |
sayFilter() |
void |
setFilterMethod(IIRFilterMethod filterMethod) |
void |
setParams(FilterParams filterParams)
Sets parameters then calls stuff to work out all the filter coefficients, etc.
|
void |
setParams(int channel,
FilterParams filterParams,
float sampleRate) |
public IirfFilter(int channel, double sampleRate, FilterParams filterParams)
channel
- Channel numberfilterParams
- Parameters for filter operationpublic void setParams(int channel, FilterParams filterParams, float sampleRate)
public void setParams(FilterParams filterParams)
filterParams
- public void prepareFilter()
Filter
prepareFilter
in interface Filter
public void sayFilter()
public void runFilter(double[] inputData)
Filter
New values overwrite the old values in the array.
public void runFilter(double[] inputData, double[] outputData)
Filter
New values write into the output data array.
public double runFilter(double aData)
Filter
public FilterMethod getFilterMethod()
public void setFilterMethod(IIRFilterMethod filterMethod)
public int getFilterDelay()
Filter
getFilterDelay
in interface Filter