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