Package org.tensorics.incubate.function
Class InterpolatedFunction<X extends java.lang.Comparable<X>,Y>
- java.lang.Object
-
- org.tensorics.incubate.function.InterpolatedFunction<X,Y>
-
- Type Parameters:
X
- the type of the independent variable (in)Y
- the type of the dependent variable (out)
- All Implemented Interfaces:
ContinuousFunction<X,Y>
,KeyValueFunction<X,Y>
public final class InterpolatedFunction<X extends java.lang.Comparable<X>,Y> extends java.lang.Object implements ContinuousFunction<X,Y>
A continuous function, generated from a discrete one together with an appropriate interpolation strategy.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Y
getY(X xValue)
static <X extends java.lang.Comparable<X>,Y>
InterpolatedFunction<X,Y>of(DiscreteFunction<X,Y> function, InterpolationStrategy<X,Y> strategy)
-
-
-
Method Detail
-
getY
public Y getY(X xValue)
- Specified by:
getY
in interfaceKeyValueFunction<X extends java.lang.Comparable<X>,Y>
- Parameters:
xValue
- argument of type<X>
- Returns:
- value of type
<Y>
-
of
public static <X extends java.lang.Comparable<X>,Y> InterpolatedFunction<X,Y> of(DiscreteFunction<X,Y> function, InterpolationStrategy<X,Y> strategy)
-
-