IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 28, 2006, 6:38:42 PM (19 years ago)
Author:
magnier
Message:

changed return value for psVectorFit functions to bool; now using stats->option to set FitClip

File:
1 edited

Legend:

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

    r10773 r10848  
    1313 * use ->min and ->max (PS_STAT_USE_RANGE)
    1414 *
    15  *  @version $Revision: 1.196 $ $Name: not supported by cvs2svn $
    16  *  @date $Date: 2006-12-16 05:33:48 $
     15 *  @version $Revision: 1.197 $ $Name: not supported by cvs2svn $
     16 *  @date $Date: 2006-12-29 04:38:42 $
    1717 *
    1818 *  Copyright 2006 IfA, University of Hawaii
     
    18561856        // Determine the coefficients of the polynomial.
    18571857        psPolynomial1D *myPoly = psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, 2);
    1858         myPoly = psVectorFitPolynomial1D(myPoly, NULL, 0, y, NULL, x);
    1859         if (myPoly == NULL) {
     1858        if (!psVectorFitPolynomial1D(myPoly, NULL, 0, y, NULL, x)) {
    18601859            psError(PS_ERR_UNEXPECTED_NULL, false,
    18611860                    _("Failed to fit a 1-dimensional polynomial to the three specified data points.  Returning NAN."));
Note: See TracChangeset for help on using the changeset viewer.