X
- the type of the independent variable must be comparable. Otherwise is not possible to interpolate.public class DefaultInterpolatedFunction<X,Y> extends java.lang.Object implements InterpolatedFunction<X,Y>
InterpolatedFunction
as a combination of a DiscreteFunction
plus an
InterpolationStrategy
.
The obtaining of y-values associated with x-values not defined by the DiscreteFunction
is delegated to the
InterpolationStrategy
.
InterpolatedFunction
Constructor and Description |
---|
DefaultInterpolatedFunction(DiscreteFunction<X,Y> function,
InterpolationStrategy<Y> strategy,
Conversion<X,Y> conversion,
java.util.Comparator<X> comparator) |
Modifier and Type | Method and Description |
---|---|
Y |
apply(X input) |
java.util.Set<X> |
definedXValues() |
public DefaultInterpolatedFunction(DiscreteFunction<X,Y> function, InterpolationStrategy<Y> strategy, Conversion<X,Y> conversion, java.util.Comparator<X> comparator)
public java.util.Set<X> definedXValues()
definedXValues
in interface DiscreteFunction<X,Y>