C
- the type of the coordinate (x-values)V
- the type of the field elements (y-values of the 1-D discrete function to interpolatepublic class FieldInterpolator<C,V> extends ScalarSupport<V>
Constructor and Description |
---|
FieldInterpolator(ExtendedField<V> field,
java.util.Collection<C> coordinates,
java.util.function.Function<C,V> xConversion,
java.util.function.Function<C,V> yFunction,
C x)
Constructor, taking all the parameters required for the calculation
|
Modifier and Type | Method and Description |
---|---|
V |
calculate()
Performs the actual calculation of interpolation.
|
absoluteValueOf, calculate, countOf, field, inverseOf, negativeOf, one, squareOf, squareRootOf, testIf, two, zero
public FieldInterpolator(ExtendedField<V> field, java.util.Collection<C> coordinates, java.util.function.Function<C,V> xConversion, java.util.function.Function<C,V> yFunction, C x)
field
- the field of elements of type V, which is required to do the calculation for the interpolation and
to have a comparator available.coordinates
- the discrete set of coordinates, which represent the support points for the interpolationxConversion
- a conversion function to convert x-values into the type V. This function has to be defined for
each value of coordinates and x.yFunction
- the function providing the y-values corresponding to each x-value. This function has to be
defined for each value of coordinates (not for x, as otherwise interpolation would not be required).x
- the point at which the y-value shall be determined.java.lang.NullPointerException
- in case any of the given parameters is null
public V calculate()