IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 25, 2008, 4:51:39 PM (18 years ago)
Author:
eugene
Message:

convert opihi vectors to double type, add option for int type as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20081124/Ohana/src/opihi/cmd.data/vstat.c

    r7917 r20839  
    55  int i, N;
    66  double max, min, sum, var, dvar, mean, stdev;
    7   float *X, IgnoreValue;
     7  opihi_flt *X, IgnoreValue;
    88  int Ignore, Quiet;
    99
     
    4141
    4242  /* calculate max, min, mean, sum, npix */
    43   X = vec[0].elements;
     43  X = vec[0].elements.Flt;
    4444  max = -HUGE_VAL;
    4545  min = HUGE_VAL;
     
    6565  ALLOCATE (Nval, int, 1002);
    6666  bzero (Nval, 1000*sizeof(int));
    67   X = vec[0].elements;
     67  X = vec[0].elements.Flt;
    6868  var = 0;
    6969  for (i = 0; i < vec[0].Nelements; i++, X++) {
Note: See TracChangeset for help on using the changeset viewer.