TypeEstimator<float[]>public class FloatArrayEstimator extends Object implements TypeEstimator<float[]>
This class can be used to perform type interpolation between float[] values.
Each index into the array is treated as a separate value to interpolate.
| 构造器 | 说明 |
|---|---|
FloatArrayEstimator() |
Create a FloatArrayEstimator.
|
FloatArrayEstimator(float[] lastingArray) |
Create a FloatArrayEstimator that reuses
lastingArray for every estimate() call. |
public FloatArrayEstimator()
public FloatArrayEstimator(float[] lastingArray)
lastingArray for every estimate() call.lastingArray - The array to modify and return from estimate.public float[] estimate(float progress,
float[] startKeyValue,
float[] endKeyValue)
lastingArrayexists,it will be returned, otherwise a new float[]
will be returned.estimate 在接口中 TypeEstimator<float[]>progress - The progress from the starting to the ending values.startKeyValue - The start value.endKeyValue - The end value.float[] where each element is an interpolation between
the same index in startKeyValue and endKeyValue.