IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 29, 2006, 4:05:29 PM (20 years ago)
Author:
eugene
Message:

fixed line, added cumulative histogram

File:
1 edited

Legend:

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

    r10071 r10307  
    5353  v1 = svec[0].elements;
    5454  v2 = dy;
    55   for (i = 0; i < Npts; i++, v1++, v2++) *v2 = 1.0 / (*v1 * *v1);
     55  for (i = 0; i < Npts; i++, v1++, v2++) {
     56      *v2 = (*v1 == 0.0) ? 0.0 : 1.0 / (*v1 * *v1);
     57  }
    5658 
    5759  ochisq = mrqinit (xvec[0].elements, yvec[0].elements, dy, Npts, par, Npar, fgaussOD, !Quiet);
Note: See TracChangeset for help on using the changeset viewer.