1 #ifndef SOBS_H 2 #define SOBS_H 3 4 /* 5 * sobs.h 6 * Dotur 7 * 8 * Created by Sarah Westcott on 1/7/09. 9 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved. 10 * 11 */ 12 13 /* This class implements the Sobs estimator on single group. 14 It is a child of the calculator class. */ 15 16 17 #include "calculator.h" 18 19 /***********************************************************************/ 20 21 class Sobs : public Calculator { 22 23 public: Sobs()24 Sobs() : Calculator("sobs", 1, false) {}; getValues(SAbundVector * rank)25 EstOutput getValues(SAbundVector* rank){ 26 data.resize(1,0); 27 data[0] = (double)rank->getNumBins(); 28 return data; 29 } getValues(vector<SharedRAbundVector * >)30 EstOutput getValues(vector<SharedRAbundVector*>) {return data;}; getCitation()31 string getCitation() { return "http://www.mothur.org/wiki/Sobs"; } 32 }; 33 34 /***********************************************************************/ 35 36 #endif 37