Class SimpleRatioAmbiguityAcceptance
- java.lang.Object
-
- org.orekit.estimation.measurements.gnss.SimpleRatioAmbiguityAcceptance
-
- All Implemented Interfaces:
AmbiguityAcceptance
public class SimpleRatioAmbiguityAcceptance extends Object implements AmbiguityAcceptance
Ambiguity acceptance test based on a ratio of the two best candidates.- Since:
- 10.0
- Author:
- Luc Maisonobe
- See Also:
AmbiguitySolver
-
-
Constructor Summary
Constructors Constructor Description SimpleRatioAmbiguityAcceptance(double ratio)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerLeastSquareSolution
accept(IntegerLeastSquareSolution[] candidates)
Check if one of the candidate solutions can be accepted.int
numberOfCandidates()
Get the number of candidate solutions to search for.
-
-
-
Method Detail
-
numberOfCandidates
public int numberOfCandidates()
Get the number of candidate solutions to search for.- Specified by:
numberOfCandidates
in interfaceAmbiguityAcceptance
- Returns:
- number of candidate solutions to search for
-
accept
public IntegerLeastSquareSolution accept(IntegerLeastSquareSolution[] candidates)
Check if one of the candidate solutions can be accepted.If the ratio
candidate[0]/candidate[1]
is smaller or equal to the ratio given at construction, thencandidate[0]
will be accepted- Specified by:
accept
in interfaceAmbiguityAcceptance
- Parameters:
candidates
- candidate solutions of the Integer Least Squares problem, in increasing squared distance order (the array contains at leastAmbiguityAcceptance.numberOfCandidates()
candidates)- Returns:
- the candidate solution to accept (normally the one at index 0), or null if we should still use the float solution
-
-