Package Filters
Interface Filter
- All Known Implementing Classes:
AbstractFilter
,FastIIRFilter
,FFTFilter
,FIRFilter
,IirfFilter
,MovingAverageFilter
,NullFilter
public interface Filter
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the delay of the filter - rarely used, but can be important for some processing tasks.void
Calculates the poles and zeros for the filter and sets up any memory buffers required during real time operation.double
runFilter
(double aData) Runs the filter on a single data valuevoid
runFilter
(double[] inputData) Runs the filter on an array of datavoid
runFilter
(double[] inputData, double[] outputData) Runs the filter on an array of data
-
Method Details
-
prepareFilter
void prepareFilter()Calculates the poles and zeros for the filter and sets up any memory buffers required during real time operation. -
runFilter
void runFilter(double[] inputData) Runs the filter on an array of dataNew values overwrite the old values in the array.
- Parameters:
inputData
-
-
runFilter
void runFilter(double[] inputData, double[] outputData) Runs the filter on an array of dataNew values write into the output data array.
- Parameters:
inputData
-
-
runFilter
double runFilter(double aData) Runs the filter on a single data value- Parameters:
aData
-- Returns:
- New data value
-
getFilterDelay
int getFilterDelay()Gets 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.- Returns:
- filter delay in samples.
-