Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/10/09 15:21:06 (15 years ago)
Author:
abeham
Message:

Fixed a small bug in the MannWhitneyWilcoxonTest (#573)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.StatisticalAnalysis/3.2/MannWhitneyWilcoxonTest.cs

    r1548 r1549  
    234234          }
    235235          p2Idx++;
    236           R1 += (i - starti + 1) * commonRank / (rank - startRank + 1);
     236          R1 += (double)((i - starti + 1) * commonRank) / (double)(rank - startRank + 1);
    237237        } else {
    238238          p2Idx++;
     
    281281          }
    282282          p2Idx++;
    283           R1 += (i - starti + 1) * commonRank / (rank - startRank + 1);
     283          R1 += (double)((i - starti + 1) * commonRank) / (double)(rank - startRank + 1);
    284284        } else if (p1[i] < p2[p2Idx]) {
    285285          R1 += rank;
Note: See TracChangeset for help on using the changeset viewer.