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;
        }
コード例 #2
0
        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);
        }