1.1.0
CCC
 
Calculating basic Statistics

Functions

double Db::getMinimum (const String &name, bool useSel=false) const
 
double Db::getMaximum (const String &name, bool useSel=false) const
 
VectorDouble Db::getRange (const String &name, bool useSel=false) const
 
double Db::getMean (const String &name, bool useSel=false) const
 
double Db::getVariance (const String &name, bool useSel=false) const
 
double Db::getStdv (const String &name, bool useSel=false) const
 
double Db::getCorrelation (const String &name1, const String &name2, bool useSel=false) const
 

Detailed Description

Calculate some basic statistics on the active samples of variables stored in a Db.

Parameters
nameTarget variable name
name1First target variable name
name2Second target variable name
useSelWhen TRUE, the statistics are derived from the only active samples

Function Documentation

double Db::getCorrelation ( const String name1,
const String name2,
bool  useSel = false 
) const

Returns the correlation coefficient between two target variables

double Db::getMaximum ( const String name,
bool  useSel = false 
) const

Returns the maximum of the target variable

double Db::getMean ( const String name,
bool  useSel = false 
) const

Returns the mean of the target variable

double Db::getMinimum ( const String name,
bool  useSel = false 
) const

Returns the minimum of the target variable

VectorDouble Db::getRange ( const String name,
bool  useSel = false 
) const

Returns a vector containing the minimum and maximum of the target variable

double Db::getStdv ( const String name,
bool  useSel = false 
) const

Returns the standard deviation (square root of the variance) of the target variable

double Db::getVariance ( const String name,
bool  useSel = false 
) const

Returns the variance of the target variable