X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sobs.h;fp=sobs.h;h=05956a405fca4488aa39234c87d775c5841de33c;hb=0caf3fbabaa3ece404f8ce77f4c883dc5b1bf1dc;hp=0000000000000000000000000000000000000000;hpb=1b73ff67c83892a025e597dabd9df6fe7b58206a;p=mothur.git diff --git a/sobs.h b/sobs.h new file mode 100644 index 0000000..05956a4 --- /dev/null +++ b/sobs.h @@ -0,0 +1,36 @@ +#ifndef SOBS_H +#define SOBS_H + +/* + * sobs.h + * Dotur + * + * Created by Sarah Westcott on 1/7/09. + * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved. + * + */ + +/* This class implements the Sobs estimator on single group. +It is a child of the calculator class. */ + + +#include "calculator.h" + +/***********************************************************************/ + +class Sobs : public Calculator { + +public: + Sobs() : Calculator("sobs", 1, false) {}; + EstOutput getValues(SAbundVector* rank){ + data.resize(1,0); + data[0] = (double)rank->getNumBins(); + return data; + } + EstOutput getValues(vector) {return data;}; + string getCitation() { return "http://www.mothur.org/wiki/Sobs"; } +}; + +/***********************************************************************/ + +#endif