Changeset 2762 for trunk/psLib/src/math/psStats.c
- Timestamp:
- Dec 20, 2004, 11:39:42 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psStats.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psStats.c
r2739 r2762 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.10 3$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-12- 16 23:04:18$11 * @version $Revision: 1.104 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-12-20 21:39:42 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 793 793 } 794 794 } 795 if (countInt <= 1) {795 if (countInt == 0) { 796 796 stats->sampleStdev = NAN; 797 psLogMsg(__func__, PS_LOG_WARN, "WARNING: p_psVectorSampleStdev(): no valid psVector elements. Setting stats->sampleStdev = NAN.\n"); 797 psLogMsg(__func__, PS_LOG_WARN, "WARNING: p_psVectorSampleStdev(): no valid psVector elements (%d). Setting stats->sampleStdev = NAN.\n", countInt); 798 } else if (countInt == 1) { 799 stats->sampleStdev = 0.0; 800 psLogMsg(__func__, PS_LOG_WARN, "WARNING: p_psVectorSampleStdev(): only one valid psVector elements (%d). Setting stats->sampleStdev = 0.0.\n", countInt); 798 801 } else { 799 802 countFloat = (float)countInt;
Note:
See TracChangeset
for help on using the changeset viewer.
