private static Ellipsoid FitImpl(Point3D[] points) { var algebraicEllipsoidFittingAlgorithm = new AlgebraicEllipsoidFittingAlgorithm(); var feasibleSolution = algebraicEllipsoidFittingAlgorithm.Fit(points); if (feasibleSolution != null) { //todo: add Gauss-Newton or Levenberg–Marquardt algorithms for proper fitting. var solution = GetNonlinearForm(feasibleSolution); for (var iterationsCount = 0; iterationsCount < 10; ++iterationsCount) { } return feasibleSolution; } return null; }
private static Ellipsoid FitImpl(Point3D[] points) { var algebraicEllipsoidFittingAlgorithm = new AlgebraicEllipsoidFittingAlgorithm(); var feasibleSolution = algebraicEllipsoidFittingAlgorithm.Fit(points); if (feasibleSolution != null) { //todo: add Gauss-Newton or Levenberg–Marquardt algorithms for proper fitting. var solution = GetNonlinearForm(feasibleSolution); for (var iterationsCount = 0; iterationsCount < 10; ++iterationsCount) { } return(feasibleSolution); } return(null); }