IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12999


Ignore:
Timestamp:
Apr 24, 2007, 12:27:44 PM (19 years ago)
Author:
magnier
Message:

added assert to prevent runaway

File:
1 edited

Legend:

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

    r12700 r12999  
    1313 * use ->min and ->max (PS_STAT_USE_RANGE)
    1414 *
    15  *  @version $Revision: 1.208 $ $Name: not supported by cvs2svn $
    16  *  @date $Date: 2007-03-31 03:00:07 $
     15 *  @version $Revision: 1.209 $ $Name: not supported by cvs2svn $
     16 *  @date $Date: 2007-04-24 22:27:44 $
    1717 *
    1818 *  Copyright 2006 IfA, University of Hawaii
     
    682682        }
    683683        psTrace(TRACE, 6, "Data min/max is (%.2f, %.2f)\n", min, max);
     684        assert (iterate < 20);
     685        // fprintf (stderr, "%d @ %d : %f - %f\n", iterate, numValid, min, max);
    684686
    685687        // If all data points have the same value, then we set the appropriate members of stats and return.
Note: See TracChangeset for help on using the changeset viewer.