X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=corraxescommand.cpp;h=f47427d62c2cc7f03615149b11cbfdee5135b083;hb=4169642e8a8d45f71a4a7241ee02f1b1aae29520;hp=4f8dccb167fc8e8e6d08597f11504d4df2b26f24;hpb=5553e33be3a45eee6bed2ac9a5c4ca0aa0e8d5e4;p=mothur.git diff --git a/corraxescommand.cpp b/corraxescommand.cpp index 4f8dccb..f47427d 100644 --- a/corraxescommand.cpp +++ b/corraxescommand.cpp @@ -645,7 +645,7 @@ int CorrAxesCommand::calcKendall(map >& axes, ofstream& ou int numWithLowerRank = 0; float thisrank = otus[l].score; - for (int u = l; u < scores[j].size(); u++) { + for (int u = l+1; u < scores[j].size(); u++) { if (otus[u].score > thisrank) { numWithHigherRank++; } else if (otus[u].score < thisrank) { numWithLowerRank++; } count++; @@ -655,9 +655,6 @@ int CorrAxesCommand::calcKendall(map >& axes, ofstream& ou numDisCoor += numWithLowerRank; } - //comparing to yourself - count -= lookupFloat.size(); - double p = (numCoor - numDisCoor) / (float) count; out << '\t' << p;