Interface InterpolationStrategy<Y>
-
- Type Parameters:
Y
- the type of the dependent variable (output) of the discrete function
- All Superinterfaces:
ManipulationOption
,Option<ManipulationOption>
,java.io.Serializable
- All Known Implementing Classes:
LinearInterpolationStrategy
public interface InterpolationStrategy<Y> extends java.io.Serializable, ManipulationOption
A strategy defines how to calculate values of Y of aDiscreteFunction
from a finite set of values of X.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.Class<? extends ManipulationOption>
getMarkerInterface()
<X> Y
interpolate(X xValue, 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
-
-
-
Method Detail
-
interpolate
<X> Y interpolate(X xValue, 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- Parameters:
xValue
- 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
-
getMarkerInterface
default java.lang.Class<? extends ManipulationOption> getMarkerInterface()
- Specified by:
getMarkerInterface
in interfaceOption<Y>
-
-