C
- type of the coordinate, must be the Comparable
@Deprecated public abstract class AbstractLinearDoubleInterpolationStrategy<C> extends AbstractInterpolationStrategy<C,java.lang.Double>
Double
Tensor
.
It returns a value based on the ratio in the comparable (ie. time) domain, between the reference point(t_i) and the
pair of the one before(t_1) and after(t_2) like:
ratio = (t_i - t_1)/(t_2 - t_1)
The final interpolated value is: v_i = v(t_1)+(v(t_2)-v(t_1))*ratio.
Constructor and Description |
---|
AbstractLinearDoubleInterpolationStrategy(java.util.Comparator<C> comparator)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
getInterpolatedValue(Tensor<java.lang.Double> tensorWithTheOnlyOneCoordinateOfC,
C coordineteToInterpolate)
Deprecated.
Returns interpolated value for coordinate C.
|
abstract double |
ratio(C previousComparable,
C nextComparable,
C value)
Deprecated.
|
findIndex, getOrderedListOfComparableCoordinate
public AbstractLinearDoubleInterpolationStrategy(java.util.Comparator<C> comparator)
public java.lang.Double getInterpolatedValue(Tensor<java.lang.Double> tensorWithTheOnlyOneCoordinateOfC, C coordineteToInterpolate)
InterpolationStrategy
tensorWithTheOnlyOneCoordinateOfC
- the tensor where only C coordinates are kept