Changeset 18086 for branches/2521_ProblemRefactoring/HeuristicLab.Analysis/3.3/Statistics/Fitting/ExpFitting.cs
- Timestamp:
- 11/19/21 16:07:45 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Analysis/3.3/Statistics/Fitting/ExpFitting.cs
r17226 r18086 41 41 public void Calculate(double[] y, double[] x, out double p0) { 42 42 if (y.Count() != x.Count()) { 43 throw new ArgumentException("The leng htof x and y needs do be equal. ");43 throw new ArgumentException("The length of x and y needs do be equal. "); 44 44 } 45 45 46 46 double[] c = new double[] { 0.3 }; 47 double epsf = 0;48 47 double epsx = 0.000001; 49 48 int maxits = 0; … … 59 58 60 59 alglib.lsfitcreatef(xx, y, c, diffstep, out state); 61 alglib.lsfitsetcond(state, eps f, epsx, maxits);60 alglib.lsfitsetcond(state, epsx, maxits); 62 61 alglib.lsfitfit(state, ExpFunc, null, null); 63 62 alglib.lsfitresults(state, out info, out c, out rep);
Note: See TracChangeset
for help on using the changeset viewer.