yat
0.14.5pre
|
Class for score used in Significance Analysis of Microarrays (SAM). More...
#include <yat/statistics/SAMScore.h>
Public Member Functions | |
SAMScore (const double s0, bool absolute=true) | |
double | score (const classifier::Target &target, const utility::VectorBase &value) 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 |
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 |
Protected Attributes | |
bool | absolute_ |
Class for score used in Significance Analysis of Microarrays (SAM).
The score is similar to the Student t-test but with an added fudge factor in denominator to avoid groups with small variance getting a large score.
see http://www.pnas.org/cgi/content/abstract/98/9/5116 for details
theplu::yat::statistics::SAMScore::SAMScore | ( | const double | s0, |
bool | absolute = true |
||
) |
s0 | is a fudge factor |
absolute | if true max(score, -score) is used |
|
virtual |
where , , and is the fudge factor.
Implements theplu::yat::statistics::Score.
|
virtualinherited |
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.
|
virtual |
where , is the fudge factor, and where is weighted version of number of data points .
Reimplemented from theplu::yat::statistics::Score.
|
virtual |
where , is the fudge factor, and where is weighted version of number of data points .
Implements theplu::yat::statistics::Score.
|
inherited |
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.
|
protectedinherited |
true if method is absolute, which means if score is below expected value (by chance) E, score returns E-score+E instead.