STATISTICS(3)

NAME
statistics.h - Array and complex calculation library for cint

SYNOPSIS
#include <statistics.h>
class statistics {
	double min,max;
	double sigma,sigma2;
	int nsample;
	int error;
public:
	statistics(void);
	int add(double data,double lowlimit, double uplimit);
	double min(void);
	double max(void);
	double stddev(void);
	double mean(void);
	int nsample(void);
	int error(void);
} ;

DESCRIPTION
 <statistics.h> is header file for a statistics calculation library for CINT. Declaration
 Standard deviation can be calculated by statistics type object. First, you instantiate a statistics type object and add data points, then you will get standard deviation, mean, min, max and number of sample.
	int i;
	double data[NDAT];
	statistics a;
	for(i=0;i<NDAT;i++) a.add(data[i]);
	cout << "min=" << a.min() << "  max=" << a.max() << " ;
	cout << "mean=" << a.mean() << " stddev=" << a.stddev() << " ;
	cout << "nsample= << a.nsample() << ";
 You can optionally give test limit when you add data.
	            // lowlimit, uplimit
	a.add(data[i],-100e-12 , 100e-12);

COMPATIBILITY
    HP-UX 8.0 or later

SEE ALSO
    cint(1),makecint(1)

AUTHOR
Masaharu Goto Copyright (c) 1996~1999 Masaharu Goto