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;