![]() |
UFJF - Machine Learning Toolkit
0.51.8
|
Namespace for statistical methods. More...
Functions | |
template<typename T , typename R > | |
double | mean (const mltk::Point< T, R > &p) |
Compute the mean (average) of a point. More... | |
template<typename T > | |
double | mean (const Data< T > &data, size_t feat) |
Compute the mean (average) of a feature in data. More... | |
template<typename T , typename R > | |
double | std_dev (const mltk::Point< T, R > &p) |
Compute the standard deviation of a point. More... | |
template<typename T > | |
double | std_dev (const Data< T > &data, size_t feat) |
Compute the standard deviation of a feature in data. More... | |
template<typename T , typename R > | |
double | var (const mltk::Point< T, R > &p) |
Compute the variance of a point. More... | |
template<typename T > | |
double | var (const Data< T > &data, size_t feat) |
Compute the variance of a feature in data. More... | |
template<typename T , typename R > | |
double | covar (const mltk::Point< T, R > &p, const mltk::Point< T, R > &p1) |
Compute the covariance between two points. More... | |
template<typename T > | |
double | radius (const Data< T > &data, int feat, double q) |
Returns radius of the ball that circ. the data. More... | |
template<typename T > | |
double | distCenters (const Data< T > &data, int feat) |
Compute the distance between the centers of binary classes without given features. More... | |
template<typename T > | |
double | distCentersWithoutFeats (const Data< T > &data, const std::vector< int > &feats, int index) |
Compute the distance between the centers of binary classes without given features. More... | |
Namespace for statistical methods.
double mltk::stats::covar | ( | const mltk::Point< T, R > & | p, |
const mltk::Point< T, R > & | p1 | ||
) |
Compute the covariance between two points.
p | First point to compute the variance. |
p1 | second point to compute the variance. |
double mltk::stats::distCenters | ( | const Data< T > & | data, |
int | feat | ||
) |
Compute the distance between the centers of binary classes without given features.
data | Dataset to compute the metrics. |
feats | Features to be excluded from the computation. |
index | Feature to be ignored (-1 uses all features). |
double mltk::stats::distCentersWithoutFeats | ( | const Data< T > & | data, |
const std::vector< int > & | feats, | ||
int | index | ||
) |
Compute the distance between the centers of binary classes without given features.
data | Dataset to compute the metrics. |
feats | Features to be excluded from the computation. |
index | Feature to be ignored (-1 uses all features). |
double mltk::stats::mean | ( | const Data< T > & | data, |
size_t | feat | ||
) |
Compute the mean (average) of a feature in data.
feat | Feature to compute the mean. |
double mltk::stats::mean | ( | const mltk::Point< T, R > & | p | ) |
double mltk::stats::radius | ( | const Data< T > & | data, |
int | feat, | ||
double | q | ||
) |
Returns radius of the ball that circ. the data.
data | Dataset to compute the radius. |
feat | Feature to be ignored (-1 uses all features). |
q | Lp-Norm to be used. |
double mltk::stats::std_dev | ( | const Data< T > & | data, |
size_t | feat | ||
) |
Compute the standard deviation of a feature in data.
feat | Feature to compute the standard deviation. |
double mltk::stats::std_dev | ( | const mltk::Point< T, R > & | p | ) |
double mltk::stats::var | ( | const Data< T > & | data, |
size_t | feat | ||
) |
Compute the variance of a feature in data.
feat | Feature to compute the variance. |
double mltk::stats::var | ( | const mltk::Point< T, R > & | p | ) |