Package fftFilter
Class FFTFilter
java.lang.Object
fftFilter.FFTFilter
- All Implemented Interfaces:
 Filter
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionintGets the delay of the filter - rarely used, but can be important for some processing tasks.voidCalculates the poles and zeros for the filter and sets up any memory buffers required during real time operation.doublerunFilter(double aData) Runs the filter on a single data valuevoidrunFilter(double[] inputData) Runs the filter on an array of datavoidrunFilter(double[] inputData, double[] outputData) Runs the filter on an array of datavoidFilter complex FFT data.voidrunFilter(ComplexArray complexData, int fftLength) voidsetParams(FFTFilterParams fftFilterParams, float sampleRate) Set parameters for the filter. 
- 
Constructor Details
- 
FFTFilter
 
 - 
 - 
Method Details
- 
setParams
Set parameters for the filter.- Parameters:
 fftFilterParams- the filter parameters.sampleRate- - the sample rate.
 - 
getFilterDelay
public int getFilterDelay()Description copied from interface:FilterGets the delay of the filter - rarely used, but can be important for some processing tasks. For an IIRF filter, this would be half the number of poles, for a moving average or median filter it would be half the filter length.- Specified by:
 getFilterDelayin interfaceFilter- Returns:
 - filter delay in samples.
 
 - 
prepareFilter
public void prepareFilter()Description copied from interface:FilterCalculates the poles and zeros for the filter and sets up any memory buffers required during real time operation.- Specified by:
 prepareFilterin interfaceFilter
 - 
runFilter
public void runFilter(double[] inputData, double[] outputData) Description copied from interface:FilterRuns the filter on an array of dataNew values write into the output data array.
 - 
runFilter
Filter complex FFT data. Note that the data may be full or just half of the FTF length.- Parameters:
 complexData- Complex Array will be FFTLength of FFTLength / 2 long.fftLength- FFT Length
 - 
runFilter
 - 
runFilter
public void runFilter(double[] inputData) Description copied from interface:FilterRuns the filter on an array of dataNew values overwrite the old values in the array.
 - 
runFilter
public double runFilter(double aData) Description copied from interface:FilterRuns the filter on a single data value 
 -