next up previous contents
Next: Adding Values Up: Collecting Statistics From Simulations Previous: Collecting Statistics From Simulations   Contents

Declaring a Statistical Collection Object

A class called mcsLibreCollectStats assists with collection of statistical information during simulation. Begin by including the necessary header file:

#include "mcsLibreCollectStats.h"

Then declare an object of type mcsLibreCollectStats as follows:

mcsLibreCollectStats stats_var1;

This creates a storage tool for statistical information about some variable. Many variables can be investigated simultaniously through declarations such as

mcsLibreCollectStats stats_var1, stats_var2;

or

mcsLibreCollectStats stats_var1; 
mcsLibreCollectStats stats_var2;



Hydroponics 2002-06-08