TTK
|
Functions | |
template<typename T > | |
T | mean (const T *v, const int &dimension=3) |
template<typename T > | |
T | mean (const std::vector< T > &v) |
template<typename T > | |
T | var (const T *v, const int &dimension=3) |
template<typename T > | |
T | var (const std::vector< T > &v) |
template<typename T > | |
T | cov (const T *v1, const T *v2, const int &dimension1=3, const int &dimension2=3) |
template<typename T > | |
T | cov (const std::vector< T > &v1, const std::vector< T > &v2) |
template<typename T > | |
T | corr (const T *v1, const T *v2, const int &dimension1=3, const int &dimension2=3) |
template<typename T > | |
T | corr (const std::vector< T > &v1, const std::vector< T > &v2) |
T ttk::Statistics::corr | ( | const std::vector< T > & | v1, |
const std::vector< T > & | v2 | ||
) |
Compute the sample correlation of two random variables (e.g. two vectors)
v1 | vector containing the values of the first variable.. |
v2 | vector containing the values of the second variable. |
Definition at line 59 of file Statistics.cpp.
T ttk::Statistics::corr | ( | const T * | v1, |
const T * | v2, | ||
const int & | dimension1 = 3 , |
||
const int & | dimension2 = 3 |
||
) |
Compute the sample correlation of two random variables (e.g. two vectors)
v1 | vector containing the values of the first variable.. |
v2 | vector containing the values of the second variable. |
dimension1 | Optional parameter that specifies the dimension of the first vector (by default 3). |
dimension2 | Optional parameter that specifies the dimension of the second vector (by default 3). |
Definition at line 50 of file Statistics.cpp.
T ttk::Statistics::cov | ( | const std::vector< T > & | v1, |
const std::vector< T > & | v2 | ||
) |
Compute the sample covariance of two random variables (e.g. two vectors)
v1 | vector containing the values of the first variable.. |
v2 | vector containing the values of the second variable. |
Definition at line 45 of file Statistics.cpp.
T ttk::Statistics::cov | ( | const T * | v1, |
const T * | v2, | ||
const int & | dimension1 = 3 , |
||
const int & | dimension2 = 3 |
||
) |
Compute the sample covariance of two random variables (e.g. two vectors)
v1 | vector containing the values of the first variable.. |
v2 | vector containing the values of the second variable. |
dimension1 | Optional parameter that specifies the dimension of the first vector (by default 3). |
dimension2 | Optional parameter that specifies the dimension of the second vector (by default 3). |
Definition at line 32 of file Statistics.cpp.
T ttk::Statistics::mean | ( | const std::vector< T > & | v | ) |
Compute the sample mean of a random variable (e.g. a vector)
v | vector containing the values. |
Definition at line 17 of file Statistics.cpp.
T ttk::Statistics::mean | ( | const T * | v, |
const int & | dimension = 3 |
||
) |
Compute the sample mean of a random variable (e.g. a vector)
v | vector containing the values. |
dimension | Optional parameter that specifies the dimension of the vector (by default 3). |
Definition at line 9 of file Statistics.cpp.
T ttk::Statistics::var | ( | const std::vector< T > & | v | ) |
Compute the sample varuance of a random variable (e.g. a vector)
v | vector containing the values. |
Definition at line 27 of file Statistics.cpp.
T ttk::Statistics::var | ( | const T * | v, |
const int & | dimension = 3 |
||
) |
Compute the sample varuance of a random variable (e.g. a vector)
v | vector containing the values. |
dimension | Optional parameter that specifies the dimension of the vector (by default 3). |
Definition at line 22 of file Statistics.cpp.