Package Filters
Class FIRFilter
java.lang.Object
Filters.FIRFilter
- All Implemented Interfaces:
Filter
-
Constructor Summary
-
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
-
Constructor Details
-
FIRFilter
-
-
Method Details
-
getFilterDelay
public int getFilterDelay()Description copied from interface:Filter
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.- Specified by:
getFilterDelay
in interfaceFilter
- Returns:
- filter delay in samples.
-
prepareFilter
public void prepareFilter()Description copied from interface:Filter
Calculates the poles and zeros for the filter and sets up any memory buffers required during real time operation.- Specified by:
prepareFilter
in interfaceFilter
-
runFilter
public void runFilter(double[] inputData) Description copied from interface:Filter
Runs 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:Filter
Runs the filter on an array of dataNew values write into the output data array.
-
runFilter
public double runFilter(double aData) Description copied from interface:Filter
Runs the filter on a single data value
-