]> git.donarmstrong.com Git - mothur.git/blobdiff - canberra.cpp
sffinfo bug with flow grams right index when clipQualRight=0
[mothur.git] / canberra.cpp
index 2612e16dc6c7d085431819eec046a22a0a48a9ac..9ab6234ae3119c4f3b103f314e97e9c69d793780 100644 (file)
@@ -32,7 +32,7 @@ EstOutput Canberra::getValues(vector<SharedRAbundVector*> shared) {
                        }
                }
                
-               data[0] = (1 / (float) numSharedOTUS) * sum;
+               data[0] = (1 / (float) shared[0]->getNumBins()) * sum;
                
                if (isnan(data[0]) || isinf(data[0])) { data[0] = 0; }