IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 28, 2006, 10:09:10 AM (20 years ago)
Author:
magnier
Message:

added error catch for failed stats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psPolynomialUtils.c

    r8627 r9767  
    7979        resid = (psVector *) psBinaryOp (resid, (void *) f, "-", (void *) fit);
    8080
    81         stats  = psVectorStats (stats, resid, NULL, mask, maskValue);
     81        if (!psVectorStats (stats, resid, NULL, mask, maskValue)) {
     82            psError(PS_ERR_UNKNOWN, false, "failed to measure vector stats");
     83            return NULL;
     84        }
    8285        psTrace (__func__, 5, "resid stats: %f +/- %f\n", stats->sampleMedian, stats->sampleStdev);
    8386
Note: See TracChangeset for help on using the changeset viewer.