Class LinearInterpolationStrategy<Y>
- java.lang.Object
-
- org.tensorics.core.scalar.lang.ScalarSupport<Y>
-
- org.tensorics.core.function.interpolation.LinearInterpolationStrategy<Y>
-
- All Implemented Interfaces:
java.io.Serializable
,BasicOperationSupport<Y>
,ManipulationOption
,Option<ManipulationOption>
,InterpolationStrategy<Y>
public class LinearInterpolationStrategy<Y> extends ScalarSupport<Y> implements InterpolationStrategy<Y>
AnInterpolationStrategy
for interpolating linearlyDiscreteFunction
s.- See Also:
InterpolationStrategy
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LinearInterpolationStrategy(ExtendedField<Y> field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X> Y
interpolate(X x, DiscreteFunction<X,Y> function, Conversion<X,Y> conversion, java.util.Comparator<X> comparator)
Given a value of X, a discrete function from X to Y and a conversion from X to Y, returns the interpolated value of the function at the given point-
Methods inherited from class org.tensorics.core.scalar.lang.ScalarSupport
absoluteValueOf, calculate, countOf, field, inverseOf, negativeOf, one, squareOf, squareRootOf, testIf, two, zero
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.tensorics.core.function.interpolation.InterpolationStrategy
getMarkerInterface
-
-
-
-
Constructor Detail
-
LinearInterpolationStrategy
public LinearInterpolationStrategy(ExtendedField<Y> field)
-
-
Method Detail
-
interpolate
public <X> Y interpolate(X x, DiscreteFunction<X,Y> function, Conversion<X,Y> conversion, java.util.Comparator<X> comparator)
Description copied from interface:InterpolationStrategy
Given a value of X, a discrete function from X to Y and a conversion from X to Y, returns the interpolated value of the function at the given point- Specified by:
interpolate
in interfaceInterpolationStrategy<Y>
- Parameters:
x
- value of x for which you want to know the function output valuefunction
-DiscreteFunction
to interpolateconversion
- defines how values of X domain are transformed into values of Y domain. It is needed for performing any kind of interpolation.- Returns:
- the interpolated value of y for the
function
atxValue
-
-