]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedthetayc.cpp
working on parallelizing unifrac.weighted.
[mothur.git] / sharedthetayc.cpp
index 4d8a5d91b67f5854b6a87b6df01dcdf93589fdba..ed18d9252ed52ef126355336f04bd04b67b0d7c3 100644 (file)
@@ -31,8 +31,8 @@ EstOutput ThetaYC::getValues(vector<SharedRAbundVector*> shared) {
                //get the total values we need to calculate the theta denominator sums
                for (int i = 0; i < shared[0]->size(); i++) {
                        //store in temps to avoid multiple repetitive function calls
-                       Atotal += (float)shared[0]->getAbundance(i);
-                       Btotal += (float)shared[1]->getAbundance(i);
+                       Atotal += (double)shared[0]->getAbundance(i);
+                       Btotal += (double)shared[1]->getAbundance(i);
                }
                
                //calculate the theta denominator sums