X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=calculator.h;h=5aba3d29b1c15480ef8b8b29674b6a24d45db9e7;hb=a0f1fca79d2ddfa7ad36b4485039c68b5704fe8d;hp=218f8eab74270dbb680aea0d1cf8c4ab823930ff;hpb=f687723a8357916e86a05116978e6869b039ce36;p=mothur.git diff --git a/calculator.h b/calculator.h index 218f8ea..5aba3d2 100644 --- a/calculator.h +++ b/calculator.h @@ -27,6 +27,8 @@ public: Calculator(string n, int c, bool f, bool a) : name(n), cols(c), multiple(f), needsAll(a) { m = MothurOut::getInstance(); }; virtual EstOutput getValues(SAbundVector*) = 0; virtual EstOutput getValues(vector) = 0; + //optional calc that returns the otus labels of shared otus + virtual EstOutput getValues(vector sv , vector&) { data = getValues(sv); return data; } virtual void print(ostream& f) { f.setf(ios::fixed, ios::floatfield); f.setf(ios::showpoint); f << data[0]; for(int i=1;i