58 #ifndef __UIUC_OSL_STATISTICS_H 
   59 #define __UIUC_OSL_STATISTICS_H 
   78 template<
class real,
class ret>
 
  146                 fprintf(dest,
"ave= %g  stddev= %g  min= %g  max= %g  n= %d\n",
 
  154                 fprintf(dest,
"min= %g  ave= %g  max= %g \n",
 
CkSampleT represents a statistical "sample" of some data values. 
 
void printMinAveMax(FILE *dest)
Print a terse textual description of this sample to this FILE. 
 
ret getStddev(void) const 
Return the standard deviation of this sample, in (value) units. 
 
ret getVariance(void) const 
Return the variance of this sample, in (value^2) units. 
 
real getMin(void) const 
Return the smallest value encountered. 
 
real getMax(void) const 
Return the largest value encountered. 
 
void add(real r)
Add this value to the sample set. 
 
CkSampleT< double, double > CkSample
 
void operator+=(real r)
Shorthand for add function. 
 
ret getMean(void) const 
Return the mean value of this sample–the "average" value, in (value) units. 
 
void print(FILE *dest)
Print a textual description of this sample to this FILE. 
 
int getCount(void) const 
Return the number of values in this sample. 
 
void print(void)
Print a textual description of this sample to stdout.