IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 21, 2004, 2:54:28 PM (22 years ago)
Author:
gusciora
Message:

Modified histogram->nums to be of type F32, not U32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/dataManip/tst_psHist03.c

    r2780 r2782  
    6767
    6868        for (i=0;i<numBins;i++) {
    69             if (myHist->nums->data.U32[i] != 0) {
    70                 printf("ERROR: myHist->nums->data.U32[%d] not initialized to 0.\n", i);
     69            if (myHist->nums->data.F32[i] != 0.0) {
     70                printf("ERROR: myHist->nums->data.F32[%d] not initialized to 0.\n", i);
    7171                testStatus = false;
    7272            }
    73             myHist->nums->data.U32[i] = 0;
     73            myHist->nums->data.F32[i] = 0.0;
    7474        }
    7575
     
    9191        myHist = psVectorHistogram( myHist, myData, NULL, NULL, 0 );
    9292        for (i=0;i<numBins;i++) {
    93             printf("Bin number %d bounds: (%6.3f - %6.3f): data: (%d)\n", i,
     93            printf("Bin number %d bounds: (%6.3f - %6.3f): data: (%f)\n", i,
    9494                   myHist->bounds->data.F32[i],
    9595                   myHist->bounds->data.F32[i+1],
    96                    myHist->nums->data.S32[i]);
     96                   myHist->nums->data.F32[i]);
    9797        }
    9898
Note: See TracChangeset for help on using the changeset viewer.