Changeset 1315 for trunk/yat


Ignore:
Timestamp:
May 19, 2008, 11:36:49 PM (15 years ago)
Author:
Peter
Message:

fixed some docs and bugs for the unweighted operator refs #20

Location:
trunk/yat/statistics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/WilcoxonFoldChange.cc

    r1275 r1315  
    4949    //Peter, should reserve the vector to avoid reallocations   
    5050    for (size_t i=0; i<target.size(); i++) {
    51       if (target(i)!=1) continue;
     51      if (target.binary(i)) continue;
    5252      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));
    5555      }
    5656    }
  • trunk/yat/statistics/WilcoxonFoldChange.h

    r1275 r1315  
    3636namespace statistics {
    3737
    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  */
    4146  class WilcoxonFoldChange : public Score
    4247  {
     
    4954
    5055    ///
    51     /// @return difference of the means of the two classes
     56    /// @return median of all pairwise differences
    5257    ///
    5358    /// @param target defining the two groups (Target.binary() )
Note: See TracChangeset for help on using the changeset viewer.