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