#include <stat.h>
Inheritance diagram for Stat:
Public Member Functions | |
Stat () | |
Default constructor. Invoked once. Does nothing. | |
~Stat () | |
Distructor. Does nothing. | |
Static Public Member Functions | |
double | confInterval (bool &valid, const std::vector< sample_t > &samples, double cl) |
Return the confidence interval of a set of samples. | |
double | mean (bool &valid, const std::vector< sample_t > &samples) |
Return the mean of a set of samples. | |
Static Private Member Functions | |
double | t_student (double cl, int df) |
Function to access the t-student table. | |
Static Private Attributes | |
double | t_table [30][4] |
Static table containing the t-student values. |
project: measure filename: stat.h author: C. Cicconetti <c.cicconetti@iet.unipi.it> year: 2006 affiliation: Dipartimento di Ingegneria dell'Informazione University of Pisa, Italy description: statistical classes and functions
|
Return the confidence interval of a set of samples. The validity bit is false if the number of samples is smaller than or equal to 1, or if the confidence level is outside [0, 1]. |
|
Return the mean of a set of samples. The validity bit is false if the number of samples is zero. |
|
Function to access the t-student table. Access to the t-student table through the number of degrees of freedom and the confidence level. Return -1.0 if the the number of the degrees of freedom is smaller than or equal to 1, or if the confidence level is outside [0, 1]. |
|
Static table containing the t-student values. project: measure filename: stat.cc author: C. Cicconetti <c.cicconetti@iet.unipi.it> year: 2006 affiliation: Dipartimento di Ingegneria dell'Informazione University of Pisa, Italy description: body of statistical functions and classes |