| Constructor and Description |
|---|
FIR(float[] afCoefficients)
Init a FIR filter with coefficients.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getFrequencyResponse(double dOmega)
Get the frequency response of the filter at a specified frequency.
|
double |
getPhaseResponse(double dOmega)
Get the phase response of the filter at a specified frequency.
|
float |
process(float fInput)
Process an input sample and calculate an output sample.
|
public FIR(float[] afCoefficients)
afCoefficients - The array of filter coefficients.public float process(float fInput)
public double getFrequencyResponse(double dOmega)
getFrequencyResponse in interface FilterdOmega - The frequency for which the frequency response
should be calculated. Has to be given as omega values
([-PI .. +PI]).public double getPhaseResponse(double dOmega)
getPhaseResponse in interface FilterdOmega - The frequency for which the phase response
should be calculated. Has to be given as omega values
([-PI .. +PI]).