]> git.donarmstrong.com Git - mothur.git/blobdiff - calculator.h
changes while testing
[mothur.git] / calculator.h
index 218f8eab74270dbb680aea0d1cf8c4ab823930ff..5aba3d29b1c15480ef8b8b29674b6a24d45db9e7 100644 (file)
@@ -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<SharedRAbundVector*>) = 0;
+    //optional calc that returns the otus labels of shared otus
+    virtual EstOutput getValues(vector<SharedRAbundVector*> sv , vector<string>&) { 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<data.size();i++){ f << '\t' << data[i];   }}
        virtual string getName()                {       return name;    }