public class SimpleRatioAmbiguityAcceptance extends Object implements AmbiguityAcceptance
AmbiguitySolver
Constructor and Description |
---|
SimpleRatioAmbiguityAcceptance(double ratio)
简单构造函数。
|
Modifier and Type | Method and Description |
---|---|
IntegerLeastSquareSolution |
accept(IntegerLeastSquareSolution[] candidates)
检查是否可以接受候选解之一。
|
int |
numberOfCandidates()
获取要搜索的候选解数量。
|
public SimpleRatioAmbiguityAcceptance(double ratio)
ratio
- candidate[0]/candidate[1]
的接受比率,通常为1.0/2.0
或1.0/3.0
public int numberOfCandidates()
numberOfCandidates
在接口 AmbiguityAcceptance
public IntegerLeastSquareSolution accept(IntegerLeastSquareSolution[] candidates)
如果比率candidate[0]/candidate[1]
小于或等于构造时给定的比率,则将接受candidate[0]
accept
在接口 AmbiguityAcceptance
candidates
- 整数最小二乘问题的候选解,按递增的平方距离顺序排列(数组至少包含AmbiguityAcceptance.numberOfCandidates()
个候选解)
Copyright © 2002-2023 CS GROUP. All rights reserved.