cgv
cgv::utils::statistics Class Reference

#include <statistics.h>

Public Member Functions

 statistics ()
 initialize with no value considered yet More...
 
 statistics (const double &v)
 initialize and consider one value
 
 statistics (const double &v, unsigned int n)
 initialize and consider n equal values
 
void init ()
 initialize
 
void init (const double &v)
 initialize and consider one value
 
void init (const double &v, unsigned int n)
 initialize and consider n equal values
 
void update (const double &v)
 consider another value
 
void update (const double &v, unsigned int n)
 consider another value count times
 
double get_average () const
 compute average of the considered values
 
double get_standard_deviation () const
 compute standard deviation of the considered value
 
double get_sum () const
 get the sum of the considered variables
 
double get_sum_of_squares () const
 get the sum of the considered variables
 
double get_min () const
 get the minimum of the considered variables
 
double get_max () const
 get the maximum of the considered variables
 
unsigned int get_count () const
 get the number of considered variables
 

Detailed Description

incrementally accumulate statistical information

Constructor & Destructor Documentation

◆ statistics()

cgv::utils::statistics::statistics ( )

initialize with no value considered yet

incrementally accumulate statistical information


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