using System;
class Stats {
/* Class with elementary stats functions N T Bishop 1990
* ===================================== J M Bishop 1999
*
* Provides a mean and standard deviation
*
*/
public static double mean(double[] a) {
double sum = 0;
for (int i = 1; i