Changeset 17931 for trunk/HeuristicLab.Analysis/3.3/Statistics
- Timestamp:
- 04/09/21 19:41:33 (4 years ago)
- Location:
- trunk/HeuristicLab.Analysis/3.3/Statistics/Fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Analysis/3.3/Statistics/Fitting/ExpFitting.cs
r17180 r17931 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); -
trunk/HeuristicLab.Analysis/3.3/Statistics/Fitting/LogFitting.cs
r17180 r17931 45 45 46 46 double[] c = new double[] { 0.3, 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, LogFunc, null, null); 63 62 alglib.lsfitresults(state, out info, out c, out rep);
Note: See TracChangeset
for help on using the changeset viewer.