X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=phylodiversity.cpp;h=37884c483619887bcc478b6fdf7e77be08424cd4;hb=29b2a01f3daf8f16438b16f0e44b1c36d989d60b;hp=96d49d489e192cc3f9b1cf52f4091dc32cab9f20;hpb=4a2d841cb97fb02351022efe9d7068b1dc212bf9;p=mothur.git diff --git a/phylodiversity.cpp b/phylodiversity.cpp index 96d49d4..37884c4 100644 --- a/phylodiversity.cpp +++ b/phylodiversity.cpp @@ -66,10 +66,11 @@ EstOutput PhyloDiversity::getValues(Tree* t, vector treeNodes) { for (int i=0; iGroups.size(); i++) { - if (groupTotals[globaldata->Groups[i]] != 0.0) { //avoid divide by zero error - float percent = DScore[globaldata->Groups[i]] / groupTotals[globaldata->Groups[i]]; - data.push_back(percent); - }else { data.push_back(0.0); } + //if (groupTotals[globaldata->Groups[i]] != 0.0) { //avoid divide by zero error + //float percent = DScore[globaldata->Groups[i]] / groupTotals[globaldata->Groups[i]]; + float percent = DScore[globaldata->Groups[i]]; + data.push_back(percent); + //}else { data.push_back(0.0); } } return data;