5 * Created by Thomas Ryabin on 4/8/09.
6 * Copyright 2009 __MyCompanyName__. All rights reserved.
10 #include "goodscoverage.h"
11 #include "calculator.h"
13 /**********************************************************/
15 EstOutput GoodsCoverage::getValues(SAbundVector* rank){
19 double numSingletons = rank->get(1);
20 double totalIndividuals = rank->getNumSeqs();
22 data[0] = 1 - numSingletons/totalIndividuals;
24 if (isnan(data[0]) || isinf(data[0])) { data[0] = 0; }
29 cout << "Standard Error: " << e.what() << " has occurred in the GoodsCoverage class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
33 cout << "An unknown error has occurred in the GoodsCoverage class function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
38 /***********************************************************************/