Interface AmbiguityAcceptance
-
- All Known Implementing Classes:
SimpleRatioAmbiguityAcceptance
public interface AmbiguityAcceptance
Interface defining ambiguity acceptance tests.- Since:
- 10.0
- Author:
- Luc Maisonobe
- See Also:
AmbiguitySolver
-
-
Method Summary
All Methods Instance Methods Abstract 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
int numberOfCandidates()
Get the number of candidate solutions to search for.- Returns:
- number of candidate solutions to search for
-
accept
IntegerLeastSquareSolution accept(IntegerLeastSquareSolution[] candidates)
Check if one of the candidate solutions can be accepted.- Parameters:
candidates
- candidate solutions of the Integer Least Squares problem, in increasing squared distance order (the array contains at leastnumberOfCandidates()
candidates)- Returns:
- the candidate solution to accept (normally the one at index 0), or null if we should still use the float solution
-
-