]> git.donarmstrong.com Git - mothur.git/blob - simpsoneven.cpp
sffinfo bug with flow grams right index when clipQualRight=0
[mothur.git] / simpsoneven.cpp
1 /*
2  *  simpsoneven.cpp
3  *  Mothur
4  *
5  *  Created by Pat Schloss on 8/21/10.
6  *  Copyright 2010 Schloss Lab. All rights reserved.
7  *
8  */
9
10 #include "simpsoneven.h"
11 #include "invsimpson.h"
12
13 /***********************************************************************/
14
15 EstOutput SimpsonEven::getValues(SAbundVector* rank){
16         try {
17                 data.resize(1,0);
18
19                 InvSimpson* simp = new InvSimpson();
20                 vector<double> invSimpData = simp->getValues(rank);
21                 
22                 data[0] = invSimpData[0] / double(rank->getNumBins());
23                 
24                 
25                 return data;
26         }
27         catch(exception& e) {
28                 m->errorOut(e, "SimpsonEven", "getValues");
29                 exit(1);
30         }
31 }
32
33 /***********************************************************************/
34