Package Filters.interpolate
Class PolyInterpolator0
java.lang.Object
Filters.interpolate.PolyInterpolator
Filters.interpolate.PolyInterpolator0
- All Implemented Interfaces:
Interpolator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getOutputValue
(double arrayPosition) Get an output value for a specific point.void
setInputData
(double[] inputArray) Set a new array of input data.Methods inherited from class Filters.interpolate.PolyInterpolator
getSampleDelay
-
Constructor Details
-
PolyInterpolator0
public PolyInterpolator0()
-
-
Method Details
-
getOutputValue
public double getOutputValue(double arrayPosition) Description copied from interface:Interpolator
Get an output value for a specific point. 0 refers to the exact position of the first input sample, though there may be buffered data allowing the extraction of data from slightly earlier than that.- Parameters:
arrayPosition
- picking position. Must be >= 0 and invalid input: '<'= length of input data-1- Returns:
- value picked from the input array and any history buffer
-
setInputData
public void setInputData(double[] inputArray) Description copied from interface:Interpolator
Set a new array of input data. The interpolator will probably hold some history from previous data in a buffer.- Specified by:
setInputData
in interfaceInterpolator
- Overrides:
setInputData
in classPolyInterpolator
- Parameters:
inputArray
- array of input data.
-