Package org.tensorics.core.reduction
Class AbstractLinearDoubleInterpolationStrategy<C>
- java.lang.Object
-
- org.tensorics.core.reduction.AbstractInterpolationStrategy<C,java.lang.Double>
-
- org.tensorics.core.reduction.AbstractLinearDoubleInterpolationStrategy<C>
-
- Type Parameters:
C
- type of the coordinate, must be theComparable
- All Implemented Interfaces:
InterpolationStrategy<C,java.lang.Double>
@Deprecated public abstract class AbstractLinearDoubleInterpolationStrategy<C> extends AbstractInterpolationStrategy<C,java.lang.Double>
Deprecated.An abstract implementation for the linear interpolation of theDouble
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 Summary
Constructors Constructor Description AbstractLinearDoubleInterpolationStrategy(java.util.Comparator<C> comparator)
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.-
Methods inherited from class org.tensorics.core.reduction.AbstractInterpolationStrategy
findIndex, getOrderedListOfComparableCoordinate
-
-
-
-
Constructor Detail
-
AbstractLinearDoubleInterpolationStrategy
public AbstractLinearDoubleInterpolationStrategy(java.util.Comparator<C> comparator)
Deprecated.
-
-
Method Detail
-
getInterpolatedValue
public java.lang.Double getInterpolatedValue(Tensor<java.lang.Double> tensorWithTheOnlyOneCoordinateOfC, C coordineteToInterpolate)
Deprecated.Description copied from interface:InterpolationStrategy
Returns interpolated value for coordinate C.- Parameters:
tensorWithTheOnlyOneCoordinateOfC
- the tensor where only C coordinates are kept- Returns:
- the interpolated value
-
-