5 * Created by westcott on 12/15/10.
6 * Copyright 2010 Schloss Lab. All rights reserved.
12 /***********************************************************************/
13 EstOutput Soergel::getValues(vector<SharedRAbundVector*> shared) {
20 //calc the 2 denominators
21 for (int i = 0; i < shared[0]->getNumBins(); i++) {
23 int Aij = shared[0]->getAbundance(i);
24 int Bij = shared[1]->getAbundance(i);
26 sumNum += abs((Aij - Bij));
27 sumMax += max(Aij, Bij);
30 data[0] = sumNum / sumMax;
32 if (isnan(data[0]) || isinf(data[0])) { data[0] = 0; }
37 m->errorOut(e, "Soergel", "getValues");
41 /***********************************************************************/