yat
0.14.5pre
|
Interface Class for score classes. More...
#include <yat/statistics/Score.h>
Public Member Functions | |
Score (bool) | |
Constructor. | |
virtual | ~Score (void) |
Destructor. | |
void | absolute (bool absolute) |
Function changing mode of Score. | |
virtual double | score (const classifier::Target &target, const utility::VectorBase &value) const =0 |
virtual double | score (const classifier::Target &target, const classifier::DataLookup1D &value) const |
virtual double | score (const classifier::Target &target, const classifier::DataLookupWeighted1D &value) const |
virtual double | score (const classifier::Target &target, const utility::VectorBase &value, const utility::VectorBase &weight) const =0 |
double | score (const classifier::Target &target, const classifier::DataLookup1D &value, const classifier::DataLookup1D &weight) const |
Protected Attributes | |
bool | absolute_ |
Interface Class for score classes.
|
pure virtual |
Function calculating the score. In absolute mode, also the score using negated class labels is calculated, and the largest of the two scores are returned.
Implemented in theplu::yat::statistics::AUC, theplu::yat::statistics::SNRScore, theplu::yat::statistics::SAMScore, theplu::yat::statistics::tScore, theplu::yat::statistics::Pearson, theplu::yat::statistics::WilcoxonFoldChange, and theplu::yat::statistics::FoldChange.
|
virtual |
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 |
Function calculating the score in a weighted fashion. 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 is copied to two utility::vector and that operator is called. If speed is important this operator should be implemented in inherited class to avoid copying.
Reimplemented in theplu::yat::statistics::tScore, theplu::yat::statistics::SAMScore, theplu::yat::statistics::SNRScore, theplu::yat::statistics::AUC, theplu::yat::statistics::Pearson, and theplu::yat::statistics::FoldChange.
|
pure virtual |
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.
Implemented in theplu::yat::statistics::tScore, theplu::yat::statistics::SAMScore, theplu::yat::statistics::SNRScore, theplu::yat::statistics::AUC, theplu::yat::statistics::Pearson, theplu::yat::statistics::WilcoxonFoldChange, and theplu::yat::statistics::FoldChange.
double theplu::yat::statistics::Score::score | ( | const classifier::Target & | target, |
const classifier::DataLookup1D & | value, | ||
const classifier::DataLookup1D & | weight | ||
) | const |
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.
|
protected |
true if method is absolute, which means if score is below expected value (by chance) E, score returns E-score+E instead.