theplu::yat::statistics::WilcoxonFoldChange Class Reference

WilcoxonFoldChange. More...

#include <yat/statistics/WilcoxonFoldChange.h>

Inheritance diagram for theplu::yat::statistics::WilcoxonFoldChange:

theplu::yat::statistics::Score

List of all members.

Public Member Functions

 WilcoxonFoldChange (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, 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
virtual double score (const classifier::Target &target, const classifier::DataLookupWeighted1D &value) const
double score (const classifier::Target &target, const classifier::DataLookup1D &value, const classifier::DataLookup1D &weight) const

Protected Attributes

bool absolute_


Detailed Description

WilcoxonFoldChange.

WilcoxonFoldChange is calculated as follows: Having $ n_+ $ samples from class + and $ n_- $ from class -, all $ n_+ n_- $ pairwise distances are calculated, and the WilcoxonFoldChange is the median of these values.


Member Function Documentation

double theplu::yat::statistics::WilcoxonFoldChange::score ( const classifier::Target target,
const utility::VectorBase value 
) const [virtual]

Returns:
median of all pairwise differences
Parameters:
target defining the two groups (Target.binary() )
value vector of the values

Implements theplu::yat::statistics::Score.

double theplu::yat::statistics::WilcoxonFoldChange::score ( const classifier::Target target,
const utility::VectorBase value,
const utility::VectorBase weight 
) const [virtual]

Returns:
weighted median of all pairwise differences
For each pair a DataWeight is created with value = value(i) - value(j) and weight = weight(i)*weight(j) where sample i and sample j come from different groups.

Parameters:
target defining the two groups
value vector of the values
weight vector of accompanied weight to the values
Note:
not implemented

Implements theplu::yat::statistics::Score.

virtual double theplu::yat::statistics::Score::score ( const classifier::Target target,
const classifier::DataLookup1D value 
) const [virtual, inherited]

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

virtual double theplu::yat::statistics::Score::score ( const classifier::Target target,
const classifier::DataLookupWeighted1D value 
) const [virtual, inherited]

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::AUC, theplu::yat::statistics::FoldChange, theplu::yat::statistics::Pearson, theplu::yat::statistics::SAMScore, theplu::yat::statistics::SNRScore, and theplu::yat::statistics::tScore.

double theplu::yat::statistics::Score::score ( const classifier::Target target,
const classifier::DataLookup1D value,
const classifier::DataLookup1D weight 
) const [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.


Member Data Documentation

bool theplu::yat::statistics::Score::absolute_ [protected, inherited]

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:

Generated on Tue Jan 18 02:20:11 2011 for yat by  doxygen 1.5.5