Changeset 13418 for trunk/psLib/src/math/psStats.c
- Timestamp:
- May 18, 2007, 3:19:55 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psStats.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psStats.c
r12999 r13418 13 13 * use ->min and ->max (PS_STAT_USE_RANGE) 14 14 * 15 * @version $Revision: 1.2 09$ $Name: not supported by cvs2svn $16 * @date $Date: 2007-0 4-24 22:27:44$15 * @version $Revision: 1.210 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2007-05-18 13:19:55 $ 17 17 * 18 18 * Copyright 2006 IfA, University of Hawaii … … 259 259 for (long i = 0; i < num; i++) { 260 260 // Check if the data is with the specified range 261 if (!isfinite(vector[i])) { 262 stats->max = stats->min = NAN; 263 psError(PS_ERR_IEEE, true, "Element %ld of vector is Inf/NaN", i); 264 return 0; 265 } 266 261 267 if (useRange && (vector[i] < stats->min)) 262 268 continue;
Note:
See TracChangeset
for help on using the changeset viewer.
