|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tritonus.lowlevel.dsp.FIR
public class FIR
A Finite Impulse Response (FIR) filter.
Constructor Summary | |
---|---|
FIR(float[] afCoefficients)
Init a FIR filter with coefficients. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FIR(float[] afCoefficients)
afCoefficients
- The array of filter coefficients.Method Detail |
---|
public float process(float fInput)
process
in interface Filter
public double getFrequencyResponse(double dOmega)
getFrequencyResponse
in interface Filter
dOmega
- 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 Filter
dOmega
- The frequency for which the phase response
should be calculated. Has to be given as omega values
([-PI .. +PI]).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |