yat  0.10.4pre
Public Member Functions | Protected Attributes
theplu::yat::statistics::WilcoxonFoldChange Class Reference

WilcoxonFoldChange. More...

#include </scratch/bob/jari/tmp/pristine/yat-0.10.x/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:
targetdefining the two groups (Target.binary() )
valuevector 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:
targetdefining the two groups
valuevector of the values
weightvector 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
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.

Returns:
score
virtual double theplu::yat::statistics::Score::score ( const classifier::Target target,
const classifier::DataLookupWeighted1D value 
) const
virtualinherited

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.

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_
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:

Generated on Mon Nov 11 2013 09:41:45 for yat by  doxygen 1.8.1