Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Static Public Member Functions | List of all members
BIAS::VectorStatistics Class Reference

Provides methods to compute statistical values from vector<double>. More...

#include <MathAlgo/VectorStatistics.hh>

Static Public Member Functions

static void ComputeMean (const std::vector< double > &values, double &mean)
 Convenience method. More...
 
static void ComputeMedianMinAndMax (const std::vector< double > &values, double &median, double &min, double &max)
 Computes median, min and max of the given values and returns them. More...
 
static void ComputeStdDev (const std::vector< double > &values, double &stdDev)
 Convenience method. More...
 
static void ComputeSum (const std::vector< double > &values, double &sum)
 Computes the sum of the values and returns it. More...
 
static void ComputeSumAndMean (const std::vector< double > &values, double &sum, double &mean)
 Computes the sum and the mean of the values and returns them. More...
 
static void ComputeSumMeanAndVariance (const std::vector< double > &values, double &sum, double &mean, double &variance)
 Computes the sum, the mean and the variance of the values and returns them. More...
 
static void ComputeSumMeanVarianceAndStdDev (const std::vector< double > &values, double &sum, double &mean, double &variance, double &stdDev)
 Computes the sum, the mean, the variance and the standard deviation of the values and returns them. More...
 
static void ComputeVariance (const std::vector< double > &values, double &variance)
 Convenience method. More...
 

Detailed Description

Provides methods to compute statistical values from vector<double>.

Author
rwulff
Date
07/2013

Definition at line 46 of file VectorStatistics.hh.

Member Function Documentation

static void BIAS::VectorStatistics::ComputeMean ( const std::vector< double > &  values,
double &  mean 
)
inlinestatic

Convenience method.

Computes the mean of the values and returns it.

Definition at line 81 of file VectorStatistics.hh.

References ComputeSumAndMean().

static void BIAS::VectorStatistics::ComputeMedianMinAndMax ( const std::vector< double > &  values,
double &  median,
double &  min,
double &  max 
)
inlinestatic

Computes median, min and max of the given values and returns them.

Definition at line 150 of file VectorStatistics.hh.

static void BIAS::VectorStatistics::ComputeStdDev ( const std::vector< double > &  values,
double &  stdDev 
)
inlinestatic

Convenience method.

Computes the standard deviation of the values and returns it.

Definition at line 139 of file VectorStatistics.hh.

References ComputeSumMeanVarianceAndStdDev().

static void BIAS::VectorStatistics::ComputeSum ( const std::vector< double > &  values,
double &  sum 
)
inlinestatic

Computes the sum of the values and returns it.

Definition at line 54 of file VectorStatistics.hh.

Referenced by ComputeSumAndMean().

static void BIAS::VectorStatistics::ComputeSumAndMean ( const std::vector< double > &  values,
double &  sum,
double &  mean 
)
inlinestatic

Computes the sum and the mean of the values and returns them.

Definition at line 68 of file VectorStatistics.hh.

References ComputeSum().

Referenced by ComputeMean(), and ComputeSumMeanAndVariance().

static void BIAS::VectorStatistics::ComputeSumMeanAndVariance ( const std::vector< double > &  values,
double &  sum,
double &  mean,
double &  variance 
)
inlinestatic

Computes the sum, the mean and the variance of the values and returns them.

Definition at line 93 of file VectorStatistics.hh.

References ComputeSumAndMean().

Referenced by ComputeSumMeanVarianceAndStdDev(), and ComputeVariance().

static void BIAS::VectorStatistics::ComputeSumMeanVarianceAndStdDev ( const std::vector< double > &  values,
double &  sum,
double &  mean,
double &  variance,
double &  stdDev 
)
inlinestatic

Computes the sum, the mean, the variance and the standard deviation of the values and returns them.

Definition at line 125 of file VectorStatistics.hh.

References ComputeSumMeanAndVariance().

Referenced by ComputeStdDev().

static void BIAS::VectorStatistics::ComputeVariance ( const std::vector< double > &  values,
double &  variance 
)
inlinestatic

Convenience method.

Computes the variance of the values and returns it.

Definition at line 113 of file VectorStatistics.hh.

References ComputeSumMeanAndVariance().


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