* coverage.h
* Mothur
*
- * Created by Sarah Westcott on 3/9/09.
- * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
+ * Created by Pat Schloss on 4/22/09.
+ * Copyright 2009 Patrick D. Schloss. All rights reserved.
*
*/
-#include "mothur.h"
-#include "fullmatrix.h"
-#include "globaldata.hpp"
+#include "calculator.h"
-using namespace std;
+/* This class implements the coverage estimator on single group.
+ It is a child of the calculator class. */
/***********************************************************************/
-class Coverage {
+class Coverage : public Calculator {
- public:
- Coverage();
- ~Coverage(){};
- void getValues(FullMatrix*, float, vector< vector<float> >&);
- void getValues(FullMatrix*, float, vector< vector<float> >&, string); //for random matrices
-
- private:
- GlobalData* globaldata;
- int numGroups, numUserGroups;
-
+public:
+ Coverage() : Calculator("coverage", 1, false) {};
+ EstOutput getValues(SAbundVector*);
+ EstOutput getValues(vector<SharedRAbundVector*>) {return data;};
+ string getCitation() { return "http://www.mothur.org/wiki/Coverage"; }
};
/***********************************************************************/
-
-
-#endif
\ No newline at end of file
+#endif