yat  0.21pre
Public Member Functions | Protected Attributes | List of all members
theplu::yat::statistics::WilcoxonFoldChange Class Reference

WilcoxonFoldChange. More...

#include <yat/statistics/WilcoxonFoldChange.h>

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

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

◆ score() [1/5]

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.

◆ score() [2/5]

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.

◆ score() [3/5]

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

◆ score() [4/5]

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.

◆ score() [5/5]

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

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

Generated on Wed Jan 25 2023 03:34:29 for yat by  doxygen 1.8.14