5 * Created by westcott on 12/15/10.
6 * Copyright 2010 Schloss Lab. All rights reserved.
10 #include "manhattan.h"
12 /***********************************************************************/
13 EstOutput Manhattan::getValues(vector<SharedRAbundVector*> shared) {
19 for (int i = 0; i < shared[0]->getNumBins(); i++) {
21 int Aij = shared[0]->getAbundance(i);
22 int Bij = shared[1]->getAbundance(i);
24 sum += abs((Aij - Bij));
29 if (isnan(data[0]) || isinf(data[0])) { data[0] = 0; }
34 m->errorOut(e, "Manhattan", "getValues");
38 /***********************************************************************/