X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=whittaker.cpp;h=5ab1e5dd88eedb8e0fb0dbe52d0b42e0c61d3c44;hp=48bc3222e2acadb9095744082be88fc7d615cbd0;hb=615301e57c25e241356a9c2380648d117709458d;hpb=510b1cfc25cd79391d6973ca20c5ec25fb1bb3b2 diff --git a/whittaker.cpp b/whittaker.cpp index 48bc322..5ab1e5d 100644 --- a/whittaker.cpp +++ b/whittaker.cpp @@ -23,11 +23,11 @@ EstOutput Whittaker::getValues(vector shared){ if(shared[1]->getAbundance(i) != 0){ countB++; } } - data[0] = 2*sTotal/(float)(countA+countB)-1; + data[0] = 2-2*sTotal/(float)(countA+countB); return data; } catch(exception& e) { - errorOut(e, "Whittaker", "getValues"); + m->errorOut(e, "Whittaker", "getValues"); exit(1); } }