public class SimpleRatioAmbiguityAcceptance extends Object implements AmbiguityAcceptance
AmbiguitySolver
Constructor and Description |
---|
SimpleRatioAmbiguityAcceptance(double ratio)
Simple constructor.
|
Modifier and Type | Method and 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.
|
public SimpleRatioAmbiguityAcceptance(double ratio)
ratio
- acceptance ratio for candidate[0]/candidate[1]
,
typically 1.0/2.0
or 1.0/3.0
public int numberOfCandidates()
numberOfCandidates
in interface AmbiguityAcceptance
public IntegerLeastSquareSolution accept(IntegerLeastSquareSolution[] candidates)
If the ratio candidate[0]/candidate[1]
is smaller or
equal to the ratio given at construction, then candidate[0]
will be accepted
accept
in interface AmbiguityAcceptance
candidates
- candidate solutions of the Integer Least Squares problem,
in increasing squared distance order (the array contains at least
AmbiguityAcceptance.numberOfCandidates()
candidates)Copyright © 2002-2020 CS Group. All rights reserved.