Package Filters
Class AbstractFilter
java.lang.Object
Filters.AbstractFilter
- All Implemented Interfaces:
Filter
- Direct Known Subclasses:
MovingAverageFilter
Abstract implementation of Filter interface to
provide common functionality for two of the main
function calls for processing arrays of data.
- Author:
- Doug Gillespie
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
Calculates the poles and zeros for the filter and sets up any memory buffers required during real time operation.abstract double
runFilter
(double data) 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 dataMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface Filters.Filter
getFilterDelay
-
Constructor Details
-
AbstractFilter
public AbstractFilter()
-
-
Method Details
-
prepareFilter
public abstract 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 abstract double runFilter(double data) Description copied from interface:Filter
Runs the filter on a single data value
-