]> git.donarmstrong.com Git - mothur.git/blobdiff - npshannon.cpp
modified some calculators and other stuff - pds
[mothur.git] / npshannon.cpp
index 80c83728adccbcc691d1a082d95e4c07521a263f..faabc9874dbcd4b08739dc66cf2e8728c710fa48 100644 (file)
@@ -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;