1.4.1
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

◆ getCorrelation()

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

Returns the correlation coefficient between two target variables

◆ getMaximum()

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

Returns the maximum of the target variable

◆ getMean()

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

Returns the mean of the target variable

◆ getMinimum()

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

Returns the minimum of the target variable

◆ getRange()

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

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

◆ getStdv()

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

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

◆ getVariance()

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

Returns the variance of the target variable