Class LinearInterpolationStrategy

  • All Implemented Interfaces:
    java.io.Serializable, InterpolationStrategy<java.lang.Double,​java.lang.Double>

    public class LinearInterpolationStrategy
    extends java.lang.Object
    implements InterpolationStrategy<java.lang.Double,​java.lang.Double>
    A strategy for interpolating linearly between two values of doubles, with also the x-direction of the function being double values.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Double interpolate​(java.lang.Double xValue, DiscreteFunction<java.lang.Double,​java.lang.Double> function)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LinearInterpolationStrategy

        public LinearInterpolationStrategy()
    • Method Detail

      • interpolate

        public java.lang.Double interpolate​(java.lang.Double xValue,
                                            DiscreteFunction<java.lang.Double,​java.lang.Double> function)
        Specified by:
        interpolate in interface InterpolationStrategy<java.lang.Double,​java.lang.Double>