Interface TimeInterpolable<T extends TimeInterpolable<T>>
-
- Type Parameters:
T
- Type of the object.
- All Known Implementing Classes:
Attitude
,CartesianOrbit
,CircularOrbit
,EquinoctialOrbit
,KeplerianOrbit
,Orbit
,SpacecraftState
,Transform
public interface TimeInterpolable<T extends TimeInterpolable<T>>
This interface represents objects that can be interpolated in time.- Author:
- Luc Maisonobe
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default T
interpolate(AbsoluteDate date, Collection<T> sample)
Get an interpolated instance.T
interpolate(AbsoluteDate date, Stream<T> sample)
Get an interpolated instance.
-
-
-
Method Detail
-
interpolate
default T interpolate(AbsoluteDate date, Collection<T> sample)
Get an interpolated instance.Note that the state of the current instance may not be used in the interpolation process, only its type and non interpolable fields are used (for example central attraction coefficient or frame when interpolating orbits). The interpolable fields taken into account are taken only from the states of the sample points. So if the state of the instance must be used, the instance should be included in the sample points.
Note that this method is designed for small samples only (say up to about 10-20 points) so it can be implemented using polynomial interpolation (typically Hermite interpolation). Using too much points may induce Runge's phenomenon and numerical problems (including NaN appearing).
- Parameters:
date
- interpolation datesample
- sample points on which interpolation should be done- Returns:
- a new instance, interpolated at specified date
-
interpolate
T interpolate(AbsoluteDate date, Stream<T> sample)
Get an interpolated instance.Note that the state of the current instance may not be used in the interpolation process, only its type and non interpolable fields are used (for example central attraction coefficient or frame when interpolating orbits). The interpolable fields taken into account are taken only from the states of the sample points. So if the state of the instance must be used, the instance should be included in the sample points.
Note that this method is designed for small samples only (say up to about 10-20 points) so it can be implemented using polynomial interpolation (typically Hermite interpolation). Using too much points may induce Runge's phenomenon and numerical problems (including NaN appearing).
- Parameters:
date
- interpolation datesample
- sample points on which interpolation should be done- Returns:
- a new instance, interpolated at specified date
- Since:
- 9.0
-
-