public class LinearInterpolationStrategy<Y> extends ScalarSupport<Y> implements InterpolationStrategy<Y>
InterpolationStrategy for interpolating linearly DiscreteFunctions.InterpolationStrategy,
Serialized Form| Constructor and Description |
|---|
LinearInterpolationStrategy(ExtendedField<Y> field) |
| Modifier and Type | Method and 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
|
absoluteValueOf, calculate, countOf, field, inverseOf, negativeOf, one, squareOf, squareRootOf, testIf, two, zeroclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMarkerInterfacepublic LinearInterpolationStrategy(ExtendedField<Y> field)
public <X> Y interpolate(X x, DiscreteFunction<X,Y> function, Conversion<X,Y> conversion, java.util.Comparator<X> comparator)
InterpolationStrategyinterpolate in interface InterpolationStrategy<Y>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.function at xValue