IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 6, 2004, 5:14:39 PM (22 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psStats.c

    r889 r893  
    8989    }
    9090
     91    // GUS: Verify that this is the correct action.
     92    if (lower > upper) {
     93        //        psAbort(__func__, "psHistogram requested with lower>upper");
     94        return(NULL);
     95    }
     96
    9197    newHist = (psHistogram *) psAlloc(sizeof(psHistogram));
    9298    newHist->bounds = psVectorAlloc(n+1, PS_TYPE_F32);
     
    115121    psHistogram *newHist = NULL;
    116122    int i;
     123
     124    // GUS: Verify that this is the correct action.
     125    if (bounds == NULL) {
     126        //        psAbort(__func__, "psHistogram requested with NULL bounds");
     127        return(NULL);
     128    }
    117129
    118130    newHist = (psHistogram *) psAlloc(sizeof(psHistogram));
     
    166178    int binNum = 0;
    167179    int numBins = 0;
     180
     181    // GUS: Verify that this is the correct action.
     182    if (out == NULL) {
     183        //        psAbort(__func__, "psHistogram requested with NULL struct");
     184        return(NULL);
     185    }
     186
     187    // GUS: Verify that this is the correct action.
     188    if (in == NULL) {
     189        //        psAbort(__func__, "psHistogram requested with NULL struct");
     190        return(out);
     191    }
    168192
    169193    numBins = out->nums->n;
     
    10511075{
    10521076    if (in == NULL) {
    1053         psAbort(__func__, "Input data vector (in) was NULL.");
     1077        return(stats);
     1078    }
     1079    if (stats == NULL) {
     1080        return(NULL);
    10541081    }
    10551082
Note: See TracChangeset for help on using the changeset viewer.