Index: trunk/psLib/src/math/psStats.c
===================================================================
--- trunk/psLib/src/math/psStats.c	(revision 15824)
+++ trunk/psLib/src/math/psStats.c	(revision 15840)
@@ -13,6 +13,6 @@
  * use ->min and ->max (PS_STAT_USE_RANGE)
  *
- *  @version $Revision: 1.220 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-10-29 20:36:28 $
+ *  @version $Revision: 1.221 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-12-15 01:17:28 $
  *
  *  Copyright 2006 IfA, University of Hawaii
@@ -2494,4 +2494,19 @@
     return 0;
 }
+
+psStatsOptions psStatsMeanOption(psStatsOptions options)
+{
+    return options & (PS_STAT_SAMPLE_MEAN | PS_STAT_SAMPLE_MEDIAN | PS_STAT_ROBUST_MEDIAN |
+                      PS_STAT_CLIPPED_MEAN | PS_STAT_FITTED_MEAN | PS_STAT_FITTED_MEAN_V2 |
+                      PS_STAT_FITTED_MEAN_V3 | PS_STAT_FITTED_MEAN_V4);
+}
+
+psStatsOptions psStatsStdevOption(psStatsOptions options)
+{
+    return options & (PS_STAT_SAMPLE_STDEV | PS_STAT_ROBUST_STDEV | PS_STAT_CLIPPED_STDEV |
+                      PS_STAT_FITTED_STDEV | PS_STAT_FITTED_STDEV_V2 | PS_STAT_FITTED_STDEV_V3 |
+                      PS_STAT_FITTED_STDEV_V4);
+}
+
 
 double psStatsGetValue(const psStats *stats, psStatsOptions option)
Index: trunk/psLib/src/math/psStats.h
===================================================================
--- trunk/psLib/src/math/psStats.h	(revision 15824)
+++ trunk/psLib/src/math/psStats.h	(revision 15840)
@@ -8,6 +8,6 @@
  * @author GLG, MHPCC
  *
- * @version $Revision: 1.63 $ $Name: not supported by cvs2svn $
- * @date $Date: 2007-09-20 23:59:03 $
+ * @version $Revision: 1.64 $ $Name: not supported by cvs2svn $
+ * @date $Date: 2007-12-15 01:17:28 $
  * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
  */
@@ -146,4 +146,8 @@
 // Return a particular stats value
 double psStatsGetValue(const psStats *stats, psStatsOptions option);
+// Return the statistics option(s) for the mean/median
+psStatsOptions psStatsMeanOption(psStatsOptions options);
+// Return the statistics option(s) for the stdev
+psStatsOptions psStatsStdevOption(psStatsOptions options);
 
 /// @}
