Enhanced C#
Language of your choice: library documentation

A lightweight class to help you compute the minimum, maximum, average and standard deviation of a set of values. Call Clear(), then Add(each value); you can compute the average and standard deviation at any time by calling Avg() and StdDeviation(). More...
A lightweight class to help you compute the minimum, maximum, average and standard deviation of a set of values. Call Clear(), then Add(each value); you can compute the average and standard deviation at any time by calling Avg() and StdDeviation().
Public fields  
double  Min 
double  Max 
double  SumTotal 
double  SumOfSquares 
int  Count 
Public Member Functions  
void  Clear () 
void  Add (double nextValue) 
double  Avg () 
double  Variance () 
double  StdDeviation () 
Statistic  Clone () 
Static Public Member Functions  
static Statistic  Merge (params Statistic[] data) 