public class FIRArbitraryFilter extends FIRFilterMethod
NRESPONSEPOINTS
Constructor and Description |
---|
FIRArbitraryFilter(double sampleRate,
FilterParams filterParams) |
Modifier and Type | Method and Description |
---|---|
int |
calculateFilter()
Calculate appropriate filter coefficients.
|
double |
getFilterPhase(double omega)
Get the filter phase at an angular frequency (o < omega < pi).
|
void |
setResponse(double[] frequency,
double[] gain,
int logFilterOrder,
double windowGamma)
Set the filter response.
|
createFilter, getFilterGain, getFilterGainConstant, getFilterTaps
createFilterMethod, getFastFilterCoefficients, getFilterParams, getSampleRate, setFilterParams, setSampleRate
public FIRArbitraryFilter(double sampleRate, FilterParams filterParams)
public void setResponse(double[] frequency, double[] gain, int logFilterOrder, double windowGamma)
frequency
- array of frequency values.gain
- array of gain values.filterOrder
- must be an exact power of 2public int calculateFilter()
FilterMethod
public double getFilterPhase(double omega)
FilterMethod
getFilterPhase
in class FIRFilterMethod
omega
- angular frequency