X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=rarecalc.h;fp=rarecalc.h;h=1079b96708bf8a5fc2f17e54828a22f270493601;hb=20a2d0350a737a434c89f303662d64a8eeea7b05;hp=0000000000000000000000000000000000000000;hpb=bbb5879a7e566935c23d63d42bb945072424b939;p=mothur.git diff --git a/rarecalc.h b/rarecalc.h new file mode 100644 index 0000000..1079b96 --- /dev/null +++ b/rarecalc.h @@ -0,0 +1,33 @@ +#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 +#include "calculator.h" + +/***********************************************************************/ +class RareCalc { + +public: + RareCalc(RAbundVector* b) : bins(b), numSeqs(b->getNumSeqs()), maxRank(b->getMaxRank()), numBins(b->getNumBins()) { bMatrix = binomial(numSeqs+1); }; + EstOutput getValues(int); + string getName() { return "RareCalc"; } +private: + RAbundVector* bins; + vector > bMatrix; + int numSeqs, maxRank, numBins; +}; + +/***********************************************************************/ + +#endif