WilcoxonFoldChange.
More...
#include <yat/statistics/WilcoxonFoldChange.h>
WilcoxonFoldChange.
WilcoxonFoldChange is calculated as follows: Having samples from class + and from class -, all pairwise distances are calculated, and the WilcoxonFoldChange is the median of these values.
- Returns
- median of all pairwise differences
- Parameters
-
target | defining the two groups (Target.binary() ) |
value | vector of the values |
Implements theplu::yat::statistics::Score.
- 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.
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
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.
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: