|
JScience v3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Interpolator<P,V>
This 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 linear interpolator class
for point-values of the same field is 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, Measure<Mass>> linear
= new Interpolator<Date, Measure<Mass>>() { ... }
DiscreteFunction<Date, Measure<Mass>> weight
= new DiscreteFunction<Date, Measure<Mass>>(samples, linear, t);
| Nested Class Summary | |
|---|---|
static class |
Interpolator.Linear<F extends Field<F>>
This class represents a linear interpolator for field
instances (point and values from the same field). |
| Method Summary | |
|---|---|
V |
interpolate(P point,
java.util.SortedMap<P,V> pointValues)
Estimates the value at the specified point. |
| Method Detail |
|---|
V interpolate(P point,
java.util.SortedMap<P,V> pointValues)
point - the point for which the value is estimated.pointValues - the point-value entries.
|
JScience v3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||