public abstract class FilterMethod
extends java.lang.Object
Superclass used by various filter types to calculate poles and zeros, gains, etc.
Constructor and Description |
---|
FilterMethod(double sampleRate,
FilterParams filterParams) |
Modifier and Type | Method and Description |
---|---|
abstract Filter |
createFilter(int channel) |
static FilterMethod |
createFilterMethod(double sampleRate,
FilterParams filterParams)
Create a filter method based on the type in the parameters.
|
double[] |
getFastFilterCoefficients()
Used by new fast IIR filter system.
|
abstract double |
getFilterGain(double omega)
Get the filter gain at an angular frequency (o < omega < pi).
|
abstract double |
getFilterGainConstant() |
FilterParams |
getFilterParams() |
abstract double |
getFilterPhase(double omega)
Get the filter phase at an angular frequency (o < omega < pi).
|
double |
getSampleRate() |
void |
setFilterParams(FilterParams filterParams) |
void |
setSampleRate(double sampleRate) |
public FilterMethod(double sampleRate, FilterParams filterParams)
public double getSampleRate()
public void setSampleRate(double sampleRate)
public abstract double getFilterGain(double omega)
omega
- angular frequencypublic abstract double getFilterPhase(double omega)
omega
- angular frequencypublic abstract double getFilterGainConstant()
public abstract Filter createFilter(int channel)
channel
- channel number (used in filter book keeping)public FilterParams getFilterParams()
public void setFilterParams(FilterParams filterParams)
filterParams
- the filterParams to setpublic static FilterMethod createFilterMethod(double sampleRate, FilterParams filterParams)
sampleRate
- data sample ratefilterParams
- filter parameterspublic double[] getFastFilterCoefficients()