5 * Created by Thomas Ryabin on 5/18/09.
6 * Copyright 2009Schloss Lab UMASS Amherst. All rights reserved.
14 /***********************************************************************/
15 EstOutput Shen::getValues(SAbundVector* rank){
18 globaldata = GlobalData::getInstance();
22 double n = (double)rank->getNumSeqs();
23 double f1 = (double)rank->get(1);
26 convert(globaldata->getAbund(), abund);
28 Ace* calc = new Ace(abund);
29 EstOutput ace = calc->getValues(rank);
31 double f0 = ace[0]-rank->getNumBins();
33 data[0] = f0 * (1 - pow(1 - f1/n/f0, m));
38 cout << "Standard Error: " << e.what() << " has occurred in the Coverage class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
42 cout << "An unknown error has occurred in the Coverage class function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
48 /***********************************************************************/