Class FixedNumberInterpolationGrid
- java.lang.Object
-
- org.orekit.propagation.semianalytical.dsst.utilities.FixedNumberInterpolationGrid
-
- All Implemented Interfaces:
InterpolationGrid
public class FixedNumberInterpolationGrid extends Object
Interpolation grid where a fixed number of points are evenly spaced between the start and the end of the integration step.The grid is adapted to the step considered, meaning that for short steps, the grid will be dense, while for long steps the points will be far away one from each other
- Author:
- Nicolas Bernard
-
-
Constructor Summary
Constructors Constructor Description FixedNumberInterpolationGrid(int pointsPerStep)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]getGridPoints(double stepStart, double stepEnd)Get grid points that are within the current step.<T extends CalculusFieldElement<T>>
T[]getGridPoints(T stepStart, T stepEnd)Get grid points that are within the current step.protected intgetPointsPerStep(double stepStart, double stepEnd)Get the number of points in the grid per step.protected <T extends CalculusFieldElement<T>>
intgetPointsPerStep(T stepStart, T stepEnd)Get the number of points in the grid per step.
-
-
-
Method Detail
-
getPointsPerStep
protected int getPointsPerStep(double stepStart, double stepEnd)Get the number of points in the grid per step..- Parameters:
stepStart- start of the stepstepEnd- end of the step- Returns:
- the number of points in the grid per step
-
getGridPoints
public double[] getGridPoints(double stepStart, double stepEnd)Get grid points that are within the current step.The step is defined by its start and its end time.
- Specified by:
getGridPointsin interfaceInterpolationGrid- Parameters:
stepStart- start of the stepstepEnd- end of the step- Returns:
- time points between start and end
-
getGridPoints
public <T extends CalculusFieldElement<T>> T[] getGridPoints(T stepStart, T stepEnd)
Get grid points that are within the current step.The step is defined by its start and its end time.
- Specified by:
getGridPointsin interfaceInterpolationGrid- Type Parameters:
T- type of the elements- Parameters:
stepStart- start of the stepstepEnd- end of the step- Returns:
- time points between start and end
-
getPointsPerStep
protected <T extends CalculusFieldElement<T>> int getPointsPerStep(T stepStart, T stepEnd)
Get the number of points in the grid per step.- Type Parameters:
T- type of field elements- Parameters:
stepStart- start of the stepstepEnd- end of the step- Returns:
- the number of points in the grid per step
-
-