IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39020


Ignore:
Timestamp:
Nov 2, 2015, 7:51:41 AM (11 years ago)
Author:
eugene
Message:

fix error in 2d clipped fitting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/fit2d.c

    r37807 r39020  
    217217      Y = X = 1;
    218218      for (i = ny = 0; ny < nterm; ny++) {
    219         Y = X;
     219        X = Y;
    220220        for (nx = 0; nx < nterm - ny; nx++, i++) {
    221           *zf += b[i][0]*Y;
    222           Y = Y * (*y);
    223         }
    224         X = X * (*x);
     221          *zf += b[i][0]*X;
     222          X = X * (*x);
     223        }
     224        Y = Y * (*y);
    225225      }
    226226    }
Note: See TracChangeset for help on using the changeset viewer.