IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 28, 2004, 5:54:52 PM (22 years ago)
Author:
evanalst
Message:

Changed the data type Histogram member nums to be of type psU32 per SDR.

File:
1 edited

Legend:

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

    r1320 r1327  
    6666
    6767        myHist = psHistogramAlloc(LOWER, UPPER, numBins);
    68         myHist = psHistogramVector(myHist, myData, NULL, 0);
     68        myHist = psVectorHistogram(myHist, myData, NULL, 0);
    6969
    7070        for (i=0;i<numBins;i++) {
     
    7272                   myHist->bounds->data.F32[i],
    7373                   myHist->bounds->data.F32[i+1],
    74                    myHist->nums->data.S32[i]);
     74                   myHist->nums->data.U32[i]);
    7575        }
    7676        psMemCheckCorruption(1);
     
    9191
    9292        myHist = psHistogramAlloc(LOWER, UPPER, numBins);
    93         myHist = psHistogramVector(myHist, myData, myMask, 1);
     93        myHist = psVectorHistogram(myHist, myData, myMask, 1);
    9494
    9595        for (i=0;i<numBins;i++) {
     
    9797                   myHist->bounds->data.F32[i],
    9898                   myHist->bounds->data.F32[i+1],
    99                    myHist->nums->data.S32[i]);
     99                   myHist->nums->data.U32[i]);
    100100        }
    101101        psMemCheckCorruption(1);
     
    112112    printPositiveTestHeader(stdout,
    113113                            "psStats functions",
    114                             "Calling psHistogramVector() with various NULL inputs.");
     114                            "Calling psVectorHistogram() with various NULL inputs.");
    115115
    116116    // Verify the return value is null and program execution doesn't stop,
    117117    // if input parameter myHist is null.
    118118
    119     myHist2 = psHistogramVector(NULL, myData, NULL, 0);
     119    myHist2 = psVectorHistogram(NULL, myData, NULL, 0);
    120120    if (myHist2 != NULL) {
    121121        printf("ERROR: myHist2!=NULL\n");
     
    130130
    131131    myHist = psHistogramAlloc(LOWER, UPPER, numBins);
    132     myHist = psHistogramVector(myHist, NULL, NULL, 0);
     132    myHist = psVectorHistogram(myHist, NULL, NULL, 0);
    133133    if (myHist == NULL) {
    134134        printf("ERROR: myHist==NULL\n");
     
    147147    myData->n = myData->nalloc;
    148148    myHist = psHistogramAlloc(LOWER, UPPER, numBins);
    149     myHist = psHistogramVector(myHist, NULL, NULL, 0);
     149    myHist = psVectorHistogram(myHist, NULL, NULL, 0);
    150150    if (myHist == NULL) {
    151151        printf("ERROR: myHist==NULL\n");
     
    157157    printFooter(stdout,
    158158                "psStats functions",
    159                 "Calling psHistogramVector() with various NULL inputs.",
     159                "Calling psVectorHistogram() with various NULL inputs.",
    160160                testStatus);
    161161
Note: See TracChangeset for help on using the changeset viewer.