Package Filters
Class IirfFilter
java.lang.Object
Filters.IirfFilter
- All Implemented Interfaces:
 Filter
- Author:
 - Doug Gillespie
         
Digital filtering with Infinite Impulse Response filter functions A new instance of this class must be created for each channel
 
- 
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.voiddoublerunFilter(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 datavoidvoidsetFilterMethod(IIRFilterMethod filterMethod) voidsetParams(int channel, FilterParams filterParams, float sampleRate) voidsetParams(FilterParams filterParams) Sets parameters then calls stuff to work out all the filter coefficients, etc. 
- 
Constructor Details
- 
IirfFilter
- Parameters:
 channel- Channel numberfilterParams- Parameters for filter operation
 
 - 
 - 
Method Details
- 
setParams
 - 
setParams
Sets parameters then calls stuff to work out all the filter coefficients, etc.- Parameters:
 filterParams-
 - 
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
 - 
sayFilter
public void sayFilter() - 
resetFilter
public void resetFilter() - 
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 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
public double runFilter(double aData) Description copied from interface:FilterRuns the filter on a single data value - 
getFilterMethod
 - 
setFilterMethod
 - 
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.
 
 
 -