X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=shannonrange.h;h=c5acd69096ba04cd3e9c5edece2047f2ff9f90ba;hb=a89c6295ae9a35fcaaab7fa50dcb68360dd543b0;hp=34b73f45f6b50b8e3fe4d8c6c4c48bd2a6fb8fea;hpb=a2cde58c1e72199498a2142983ef040dce36da10;p=mothur.git diff --git a/shannonrange.h b/shannonrange.h index 34b73f4..c5acd69 100644 --- a/shannonrange.h +++ b/shannonrange.h @@ -6,6 +6,13 @@ // Copyright (c) 2014 Schloss Lab. All rights reserved. // +/* + 1] Haegeman, B., Hamelin, J., Moriarty, J., Neal, P., Dushoff, J., & Weitz, J. S. (2013). Robust estimation of microbial diversity in theory and in practice. The ISME journal, 7(6), 1092–1101. + [2] Hill, M. O. (1973). Diversity and evenness: A unifying notation and its consequences. Ecology, 54(2), 427–432. + [3] Orlitsky, A., Santhanam, N. P., & Zhang, J. (2003). Always Good Turing: Asymptoti- cally optimal probability estimation. Science, 302(5644), 427–431. + [4] Roesch, L. F., Fulthorpe, R. R., Riva, A., Casella, G., Hadwin, A. K., Kent, A. D., et al. (2007). Pyrosequencing enumerates and contrasts soil microbial diversity. The ISME Journal, 1(4), 283–290. + */ + #ifndef Mothur_shannonrange_h #define Mothur_shannonrange_h @@ -16,10 +23,12 @@ class RangeShannon : public Calculator { public: - RangeShannon() : Calculator("rangeshannon", 3, false) {}; - EstOutput getValues(SAbundVector*) {return data;}; - EstOutput getValues(vector); - string getCitation() { return "http://www.mothur.org/wiki/rangeshannon"; } + RangeShannon(int a) : alpha(a), Calculator("rangeshannon", 3, false) {}; + EstOutput getValues(SAbundVector*); + EstOutput getValues(vector) {return data;}; + string getCitation() { return "Haegeman, B., Hamelin, J., Moriarty, J., Neal, P., Dushoff, J., & Weitz, J. S. (2013). Robust estimation of microbial diversity in theory and in practice. The ISME journal, 7(6), 1092–1101., http://www.mothur.org/wiki/rangeshannon"; } +private: + int alpha; }; /***********************************************************************/