]> git.donarmstrong.com Git - mothur.git/blob - sobs.h
added modify names parameter to set.dir
[mothur.git] / sobs.h
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:
24         Sobs() : Calculator("sobs", 1, false) {};
25         EstOutput getValues(SAbundVector* rank){
26                 data.resize(1,0);
27                 data[0] = (double)rank->getNumBins();
28                 return data;
29         }
30         EstOutput getValues(vector<SharedRAbundVector*>) {return data;};
31         string getCitation() { return "http://www.mothur.org/wiki/Sobs"; }
32 };
33
34 /***********************************************************************/
35
36 #endif