Class for Fisher's t-test.
More...
#include <yat/statistics/tScore.h>
|
| tScore (bool absolute=true) |
| Default Constructor.
|
|
double | score (const classifier::Target &target, const utility::VectorBase &value) const |
|
double | score (const classifier::Target &target, const utility::VectorBase &value, double *dof) const |
|
double | score (const classifier::Target &target, const classifier::DataLookupWeighted1D &value, double *dof=0) const |
|
double | score (const classifier::Target &target, const classifier::DataLookupWeighted1D &value) const |
|
double | score (const classifier::Target &target, const utility::VectorBase &value, const utility::VectorBase &weight) const |
|
double | score (const classifier::Target &target, const utility::VectorBase &value, const utility::VectorBase &weight, double *dof=0) const |
|
template<typename T1 , typename T2 > |
double | score (const T1 &pos, const T2 &neg, double *dof=0) const |
|
void | absolute (bool absolute) |
| Function changing mode of Score.
|
|
virtual double | score (const classifier::Target &target, const classifier::DataLookup1D &value) const |
|
double | score (const classifier::Target &target, const classifier::DataLookup1D &value, const classifier::DataLookup1D &weight) const |
|
Class for Fisher's t-test.
See http://en.wikipedia.org/wiki/Student's_t-test for more details on the t-test.
◆ score() [1/9]
◆ score() [2/9]
Function calculating the score. In absolute mode, also the score using negated class labels is calculated, and the largest of the two scores are calculated.
value is copied to a utility::vector and that operator is called. If speed is important this operator should be implemented in inherited class to avoid copying.
- Returns
- score
◆ score() [3/9]
◆ score() [4/9]
◆ score() [5/9]
Function calculating the weighted version of score. In absolute mode, also the score using negated class labels is calculated, and the largest of the two scores are calculated. Absolute mode should be used when two-tailed test is wanted.
value and weight are copied to utility::vector and the corresponding operator is called. If speed is important this operator should be implemented in inherited class to avoid copying.
◆ score() [6/9]
◆ score() [7/9]
◆ score() [8/9]
◆ score() [9/9]
template<typename T1 , typename T2 >
double theplu::yat::statistics::tScore::score |
( |
const T1 & |
pos, |
|
|
const T2 & |
neg, |
|
|
double * |
dof = 0 |
|
) |
| const |
Calcultate t-score from Averager like objects. Requirements for T1 and T2 are: double mean(), double n(), double sum_xx_centered()
If dof is not a null pointer it is assigned to number of degrees of freedom.
◆ absolute_
bool theplu::yat::statistics::Score::absolute_ |
|
protectedinherited |
true if method is absolute, which means if score is below expected value (by chance) E, score returns E-score+E instead.
The documentation for this class was generated from the following file: