Class LeastSquaresConverter
java.lang.Object
org.orekit.propagation.conversion.osc2mean.LeastSquaresConverter
- All Implemented Interfaces:
OsculatingToMeanConverter
Class enabling conversion from osculating to mean orbit
for a given theory using a least-squares algorithm.
- Since:
- 13.0
- Author:
- Pascal Parraud
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault maximum number of iterations.static final doubleDefault convergence threshold. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.LeastSquaresConverter(double threshold, int maxIterations) Constructor.LeastSquaresConverter(MeanTheory theory) Constructor.LeastSquaresConverter(MeanTheory theory, LeastSquaresOptimizer optimizer) Constructor.LeastSquaresConverter(MeanTheory theory, LeastSquaresOptimizer optimizer, double threshold, int maxIterations) Constructor. -
Method Summary
Modifier and TypeMethodDescription<T extends CalculusFieldElement<T>>
FieldOrbit<T> convertToMean(FieldOrbit<T> osculating) Converts an osculating orbit into a mean orbit.convertToMean(Orbit osculating) Converts an osculating orbit into a mean orbit.intGets the number of iterations performed by the last conversion.intGets the maximum number of iterations.Gets the theory defining the mean orbit.Gets the optimizer.doublegetRMS()Gets the RMS for the last conversion.doubleGets the convergence threshold.voidsetMaxIterations(int maxIterations) Sets maximum number of iterations.voidsetMeanTheory(MeanTheory meanTheory) Sets the theory defining the mean orbit.voidsetOptimizer(LeastSquaresOptimizer optimizer) Sets the optimizer.voidsetThreshold(double threshold) Sets the convergence threshold.
-
Field Details
-
DEFAULT_THRESHOLD
public static final double DEFAULT_THRESHOLDDefault convergence threshold.- See Also:
-
DEFAULT_MAX_ITERATIONS
public static final int DEFAULT_MAX_ITERATIONSDefault maximum number of iterations.- See Also:
-
-
Constructor Details
-
LeastSquaresConverter
public LeastSquaresConverter()Default constructor.The mean theory and the optimizer must be set before converting.
-
LeastSquaresConverter
Constructor.The optimizer must be set before converting.
- Parameters:
theory- mean theory to be used
-
LeastSquaresConverter
Constructor.- Parameters:
theory- mean theory to be usedoptimizer- optimizer to be used
-
LeastSquaresConverter
public LeastSquaresConverter(double threshold, int maxIterations) Constructor.The mean theory and the optimizer must be set before converting.
- Parameters:
threshold- convergence thresholdmaxIterations- maximum number of iterations
-
LeastSquaresConverter
public LeastSquaresConverter(MeanTheory theory, LeastSquaresOptimizer optimizer, double threshold, int maxIterations) Constructor.- Parameters:
theory- mean theory to be usedoptimizer- optimizer to be usedthreshold- convergence thresholdmaxIterations- maximum number of iterations
-
-
Method Details
-
getMeanTheory
Gets the theory defining the mean orbit.- Specified by:
getMeanTheoryin interfaceOsculatingToMeanConverter- Returns:
- the mean theory
-
setMeanTheory
Sets the theory defining the mean orbit.- Specified by:
setMeanTheoryin interfaceOsculatingToMeanConverter- Parameters:
meanTheory- the mean theory
-
getOptimizer
Gets the optimizer.- Returns:
- the optimizer
-
setOptimizer
Sets the optimizer.- Parameters:
optimizer- the optimizer
-
getThreshold
public double getThreshold()Gets the convergence threshold.- Returns:
- convergence threshold
-
setThreshold
public void setThreshold(double threshold) Sets the convergence threshold.- Parameters:
threshold- convergence threshold
-
getMaxIterations
public int getMaxIterations()Gets the maximum number of iterations.- Returns:
- maximum number of iterations
-
setMaxIterations
public void setMaxIterations(int maxIterations) Sets maximum number of iterations.- Parameters:
maxIterations- maximum number of iterations
-
getRMS
public double getRMS()Gets the RMS for the last conversion.- Returns:
- the RMS
-
getIterationsNb
public int getIterationsNb()Gets the number of iterations performed by the last conversion.- Returns:
- number of iterations
-
convertToMean
Converts an osculating orbit into a mean orbit. Uses a least-square algorithm.- Specified by:
convertToMeanin interfaceOsculatingToMeanConverter- Parameters:
osculating- osculating orbit- Returns:
- mean orbit
-
convertToMean
Converts an osculating orbit into a mean orbit. Uses a least-square algorithm.- Specified by:
convertToMeanin interfaceOsculatingToMeanConverter- Type Parameters:
T- type of the filed elements- Parameters:
osculating- osculating orbit- Returns:
- mean orbit
-