next up previous contents
Next: Graphics Up: Analyzing the results Previous: Fitting curves and

The analysis class

The interface of the class analysis is :

   interface analysis 
     analysis(histogram* h);           // taking histogram to be analyzed
     virtual ~analysis();   

     screen* format(char* p,char* options = "");
     screen* format(widget* w,char* p,char* options = "");
     double confidence(char* options = ""); // confidence interval of mean
     double confidence(histogram* h,char* options = ""); // difference

     double covariance(histogram* h2);  // covariance h and h2
     double correlation(histogram* h2)  // correlation h and h2
     double chisquaretest(double* expected); // chi-square test
     double linear();                    // linear fit, return chi-square
     double linear(double a,double b);   
     double quadratic();                 // quadratic fit, return chi-square
     double quadratic(double a,double b,double c);
     double uniform();                   // uniform fit, return chi-square
     double uniform(double a,double b);     
     double exponential();               // exponential fit, return chi-square
     double exponential(double a);     
     double laplace();                   // laplace fit, return chi-square
     double laplace(double a); 
     int behavior(histogram* h,int n);   // report behavior, gets buffer size

The analysis class provides a format method to create the output screen. If this function is not invoked the screen is by default toplevel. The format method takes the following options

The method behavior can be used to analyze the behavior of the simulation, for example when detecting the steady state. It generates a report on the moving average of the given histogram.

A Eliens
Tue Oct 31 09:27:21 MET 1995