Better initial guess for the circle centre
This commit is contained in:
parent
a80eefc21a
commit
4e2457cb36
|
@ -257,7 +257,7 @@ public class LevenbergMarquardtOptimizerTest
|
|||
factory.samples(numPoints).forEach(circle::addPoint);
|
||||
|
||||
// First guess for the center's coordinates and radius.
|
||||
final double[] init = { 90, 659, 115 };
|
||||
final double[] init = { 118, 659, 115 };
|
||||
|
||||
final Optimum optimum = optimizer.optimize(
|
||||
builder(circle).maxIterations(50).start(init).build());
|
||||
|
@ -290,7 +290,7 @@ public class LevenbergMarquardtOptimizerTest
|
|||
factory.samples(numPoints).forEach(circle::addPoint);
|
||||
|
||||
// First guess for the center's coordinates and radius.
|
||||
final double[] init = { 90, 659, 115 };
|
||||
final double[] init = { 118, 659, 115 };
|
||||
final Optimum optimum
|
||||
= optimizer.optimize(builder(circle).maxIterations(50).start(init).build());
|
||||
final int numEval = optimum.getEvaluations();
|
||||
|
|
Loading…
Reference in New Issue