- Timestamp:
- May 19, 2008, 11:36:49 PM (15 years ago)
- Location:
- trunk/yat/statistics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/statistics/WilcoxonFoldChange.cc
r1275 r1315 49 49 //Peter, should reserve the vector to avoid reallocations 50 50 for (size_t i=0; i<target.size(); i++) { 51 if (target (i)!=1) continue;51 if (target.binary(i)) continue; 52 52 for (size_t j=0; j<target.size(); j++) { 53 if ( target(j)==1) continue;54 distance.push_back(value(i)-value(j));53 if (!target.binary(j)) 54 distance.push_back(value(i)-value(j)); 55 55 } 56 56 } -
trunk/yat/statistics/WilcoxonFoldChange.h
r1275 r1315 36 36 namespace statistics { 37 37 38 /// 39 /// @brief WilcoxonFoldChange 40 /// 38 /** 39 @brief WilcoxonFoldChange 40 41 WilcoxonFoldChange is calculated as follows: Having \f$ n_+ \f$ 42 samples from class + and \f$ n_- \f$ from class -, all \f$ n_+ 43 n_- \f$ pairwise distances are calculated, and the 44 WilcoxonFoldChange is the median of these values. 45 */ 41 46 class WilcoxonFoldChange : public Score 42 47 { … … 49 54 50 55 /// 51 /// @return difference of the means of the two classes56 /// @return median of all pairwise differences 52 57 /// 53 58 /// @param target defining the two groups (Target.binary() )
Note: See TracChangeset
for help on using the changeset viewer.