org.jscience.mathematics.function
Interface Interpolator<P,V>
-
- All Superinterfaces:
- javolution.lang.Immutable, java.io.Serializable
- All Known Implementing Classes:
- Interpolator.Linear
public interface Interpolator<P,V> extends javolution.lang.Immutable, java.io.SerializableThis interface represents an estimator of the values at a certain point using surrounding points and values. Interpolators are typically used with
discrete functions.As a convenience
linearinterpolator class for point-values of the samefieldis provided.Custom interpolators can be used between Java objects of different kind. For example:
// Creates a linear interpolator between the java.util.Date and Measures<Mass> Interpolator<Date, Amount<Mass>> linear = new Interpolator<Date, Amount<Mass>>() { ... } DiscreteFunction<Date, Amount<Mass>> weight = new DiscreteFunction<Date, Amount<Mass>>(samples, linear, t);
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static classInterpolator.Linear<F extends Field<F>>This class represents a linear interpolator forfieldinstances (point and values from the same field).
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description Vinterpolate(P point, java.util.SortedMap<P,V> pointValues)Estimates the value at the specified point.
-
DMelt 3.0 © DataMelt by jWork.ORG