Class AbstractLinearDoubleInterpolationStrategy<C>

  • Type Parameters:
    C - type of the coordinate, must be the Comparable
    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 the 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 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
      • ratio

        public abstract double ratio​(C previousComparable,
                                     C nextComparable,
                                     C value)
        Deprecated.