IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 2, 2009, 3:15:42 PM (17 years ago)
Author:
eugene
Message:

various dvo and other improvements from gene@dev branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.data/mrqmin.c

    r20936 r25757  
    1717
    1818  int k, j, i;
    19   opihi_flt ydiff, wt, chisq;
     19  opihi_flt ymodel, ydiff, wt, chisq;
    2020
    2121  for (j = 0; j < Npar; j++) {
     
    2727  for (i = 0; i < Npts; i++) {
    2828
    29     ydiff = funcs (x[i], par, Npar, dyda) - y[i];
     29    ymodel = funcs (x[i], par, Npar, dyda);
     30    ydiff = ymodel - y[i];
    3031    chisq += SQ(ydiff) * dy[i];
     32
     33    // fprintf (stderr, "%f %f - %f : %f -> %f\n", x[i], y[i], ymodel, dy[i], chisq);
    3134
    3235    for (j = 0; j < Npar; j++) {
     
    8588
    8689  /* if good, save temp values */
    87   if (rho > 0) {
     90  if ((chisq > 1e-3) && (rho > -1e-6)) {
    8891    lambda *= 0.1;
    8992    ochisq = chisq;
Note: See TracChangeset for help on using the changeset viewer.