Example #1
0
        public void Run(int interationCount = 0)
        {
            var condition = new RegressionStopCondition(_precision, interationCount);

            while (condition.Check(ApproximationError))
            {
                MakeIteration();
                if (CurrentIteration <= MaxIterationCount)
                {
                    continue;
                }

                _success = false;
                break;
            }

            if (!InConstant.Exists(double.IsNaN) && !InConstant.Exists(double.IsInfinity))
            {
                return;
            }

            _success = false;
        }
Example #2
0
        public void Run(int interationCount = 0)
        {
            var condition = new RegressionStopCondition(_precision, interationCount);
            while (condition.Check(ApproximationError))
            {
                MakeIteration();
                if (CurrentIteration <= MaxIterationCount)
                    continue;

                _success = false;
                break;
            }

            if (!InConstant.Exists(double.IsNaN) && !InConstant.Exists(double.IsInfinity))
                return;

            _success = false;
        }