PROFASI  Version 1.5
Public Member Functions | List of all members
prf_utils::StatBox Class Reference

#include <statistics.hh>

Public Member Functions

 StatBox ()
 Default constructor.
 StatBox (const StatBox &stbx)
 Copy constructor, it is possible to copy StatBox objects.
StatBoxoperator= (const StatBox &stbx)
void reset ()
 Reset StatBox, to start taking statistics afresh.
void put (double x)
 Put a double value x into the StatBox.
double mean () const
 Mean of all values "put" into the StatBox.
double upper () const
 Maximum value.
double lower () const
 Minimum value.
double rms () const
 Root Mean Square value for all the entries.
double variance () const
double stddev () const
 Standard deviation.
int numberofentries () const
 Number of entries.
double sum () const
 Sum of the entries.
double sqrsum () const
 Sum of the squares of the entries.

Detailed Description

The StatBox is a little class which is designed to work a bit like the old fashioned pocket calculators in the statistical mode. One can reset the StatBox, one can put numbers in it, and find mean, standard deviation etc. The numbers themselves will not be stored in StatBox. So, correlations can't be calculated. But sometimes we are not interested in any more than means and variations. To calculate correlations, use CorrelationBox.

The documentation for this class was generated from the following file:

PROFASI: Protein Folding and Aggregation Simulator, Version 1.5
© (2005-2016) Anders Irbäck and Sandipan Mohanty
Documentation generated on Mon Jul 18 2016 using Doxygen version 1.8.2