- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/Ohana/src/opihi/lib.data/mrqmin.c
r20936 r27840 17 17 18 18 int k, j, i; 19 opihi_flt y diff, wt, chisq;19 opihi_flt ymodel, ydiff, wt, chisq; 20 20 21 21 for (j = 0; j < Npar; j++) { … … 27 27 for (i = 0; i < Npts; i++) { 28 28 29 ydiff = funcs (x[i], par, Npar, dyda) - y[i]; 29 ymodel = funcs (x[i], par, Npar, dyda); 30 ydiff = ymodel - y[i]; 30 31 chisq += SQ(ydiff) * dy[i]; 32 33 // fprintf (stderr, "%f %f - %f : %f -> %f\n", x[i], y[i], ymodel, dy[i], chisq); 31 34 32 35 for (j = 0; j < Npar; j++) { … … 85 88 86 89 /* if good, save temp values */ 87 if ( rho > 0) {90 if ((chisq > 1e-3) && (rho > -1e-6)) { 88 91 lambda *= 0.1; 89 92 ochisq = chisq;
Note:
See TracChangeset
for help on using the changeset viewer.
