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; }
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; }