Package org.tensorics.incubate.function
Class LinearInterpolationStrategy
- java.lang.Object
-
- org.tensorics.incubate.function.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
-
-
Constructor Summary
Constructors Constructor Description LinearInterpolationStrategy()
-
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)
-
-
-
Method Detail
-
interpolate
public java.lang.Double interpolate(java.lang.Double xValue, DiscreteFunction<java.lang.Double,java.lang.Double> function)
- Specified by:
interpolate
in interfaceInterpolationStrategy<java.lang.Double,java.lang.Double>
-
-