Changeset 15840
- Timestamp:
- Dec 14, 2007, 3:17:28 PM (18 years ago)
- Location:
- trunk/psLib/src/math
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psStats.c
r15407 r15840 13 13 * use ->min and ->max (PS_STAT_USE_RANGE) 14 14 * 15 * @version $Revision: 1.22 0$ $Name: not supported by cvs2svn $16 * @date $Date: 2007-1 0-29 20:36:28 $15 * @version $Revision: 1.221 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2007-12-15 01:17:28 $ 17 17 * 18 18 * Copyright 2006 IfA, University of Hawaii … … 2494 2494 return 0; 2495 2495 } 2496 2497 psStatsOptions psStatsMeanOption(psStatsOptions options) 2498 { 2499 return options & (PS_STAT_SAMPLE_MEAN | PS_STAT_SAMPLE_MEDIAN | PS_STAT_ROBUST_MEDIAN | 2500 PS_STAT_CLIPPED_MEAN | PS_STAT_FITTED_MEAN | PS_STAT_FITTED_MEAN_V2 | 2501 PS_STAT_FITTED_MEAN_V3 | PS_STAT_FITTED_MEAN_V4); 2502 } 2503 2504 psStatsOptions psStatsStdevOption(psStatsOptions options) 2505 { 2506 return options & (PS_STAT_SAMPLE_STDEV | PS_STAT_ROBUST_STDEV | PS_STAT_CLIPPED_STDEV | 2507 PS_STAT_FITTED_STDEV | PS_STAT_FITTED_STDEV_V2 | PS_STAT_FITTED_STDEV_V3 | 2508 PS_STAT_FITTED_STDEV_V4); 2509 } 2510 2496 2511 2497 2512 double psStatsGetValue(const psStats *stats, psStatsOptions option) -
trunk/psLib/src/math/psStats.h
r14931 r15840 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.6 3$ $Name: not supported by cvs2svn $11 * @date $Date: 2007- 09-20 23:59:03$10 * @version $Revision: 1.64 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2007-12-15 01:17:28 $ 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 13 13 */ … … 146 146 // Return a particular stats value 147 147 double psStatsGetValue(const psStats *stats, psStatsOptions option); 148 // Return the statistics option(s) for the mean/median 149 psStatsOptions psStatsMeanOption(psStatsOptions options); 150 // Return the statistics option(s) for the stdev 151 psStatsOptions psStatsStdevOption(psStatsOptions options); 148 152 149 153 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
