X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=rarecalc.h;fp=rarecalc.h;h=8a0fb72b5ef946a14f343704f6e7c2b608305e3b;hb=0caf3fbabaa3ece404f8ce77f4c883dc5b1bf1dc;hp=0000000000000000000000000000000000000000;hpb=1b73ff67c83892a025e597dabd9df6fe7b58206a;p=mothur.git diff --git a/rarecalc.h b/rarecalc.h new file mode 100644 index 0000000..8a0fb72 --- /dev/null +++ b/rarecalc.h @@ -0,0 +1,32 @@ +#ifndef RARECALC_H +#define RARECALC_H +/* + * rarecalc.h + * Dotur + * + * Created by Sarah Westcott on 1/7/09. + * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved. + * + */ + +/* This class is not currently used by Mothur */ + +#include "calculator.h" + +/***********************************************************************/ +class RareCalc { + +public: + RareCalc(RAbundVector* b) : bins(b), numSeqs(b->getNumSeqs()), maxRank(b->getMaxRank()), numBins(b->getNumBins()) { m = MothurOut::getInstance(); bMatrix = m->binomial(numSeqs+1); } + EstOutput getValues(int); + string getName() { return "rarecalc"; } +private: + RAbundVector* bins; + vector > bMatrix; + int numSeqs, maxRank, numBins; + MothurOut* m; +}; + +/***********************************************************************/ + +#endif