IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 25, 2004, 1:05:07 PM (22 years ago)
Author:
gusciora
Message:

No substantial mods here.

File:
1 edited

Legend:

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

    r1861 r1903  
    77 *  polynomials.  It also contains a Gaussian functions.
    88 *
    9  *  @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-09-23 06:12:22 $
     9 *  @version $Revision: 1.41 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-09-25 23:05:07 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    16991699all j>=i).  This routine does a binary disection of the vector and returns
    17001700"i" such that (v[i] <= x <= v[i+1).  If x lies outside the range of v[],
    1701 then this routine prints a warning message and returns -1.
     1701then this routine prints a warning message and returns (-2 or -1).
    17021702 
    17031703XXX: Macro this for a few different types.
     
    17161716            "---- Calling p_psVectorBinDisectF32(%f)\n", x);
    17171717
    1718     if ((x < bins[0]) ||
    1719             (x > bins[numBins-1])) {
     1718    if (x < bins[0]) {
     1719        psLogMsg(__func__, PS_LOG_WARN,
     1720                 "p_psVectorBinDisectF32(): ordinate %f is outside vector range (%f - %f).",
     1721                 x, bins[0], bins[numBins-1]);
     1722        return(-2);
     1723    }
     1724
     1725    if (x > bins[numBins-1]) {
    17201726        psLogMsg(__func__, PS_LOG_WARN,
    17211727                 "p_psVectorBinDisectF32(): ordinate %f is outside vector range (%f - %f).",
Note: See TracChangeset for help on using the changeset viewer.