X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=npshannon.cpp;h=faabc9874dbcd4b08739dc66cf2e8728c710fa48;hb=e4827e0945cbda536064e5a345996b2a7dfcbb81;hp=80c83728adccbcc691d1a082d95e4c07521a263f;hpb=d59f91eb1230d2c7867a92cb86138b7003100ab4;p=mothur.git diff --git a/npshannon.cpp b/npshannon.cpp index 80c8372..faabc98 100644 --- a/npshannon.cpp +++ b/npshannon.cpp @@ -28,6 +28,7 @@ EstOutput NPShannon::getValues(SAbundVector* rank){ double ChatPi = Chat*pi; if(ChatPi>0){ npShannon += rank->get(i) * ChatPi*log(ChatPi)/(1-pow(1-ChatPi,(double)sampled)); + cout << ChatPi << '\t' << rank->get(i) * ChatPi*log(ChatPi)/(1-pow(1-ChatPi,(double)sampled)) << endl; } } npShannon = -npShannon;