5 * Created by Thomas Ryabin on 5/13/09.
6 * Copyright 2009Schloss Lab UMASS Amherst. All rights reserved.
13 /***********************************************************************/
14 EstOutput Efron::getValues(SAbundVector* rank){
19 double n = (double)rank->getNumSeqs();
21 cout << "Error in the 'efron' calculator. 'size' must be less than the length of the smallest sabund vector.\n";
27 for(int i = 1; i < rank->size(); i++)
28 sum += pow(-1, (double)(i+1)) * pow(((double)m / n), i) * (double)(rank->get(i));
35 cout << "Standard Error: " << e.what() << " has occurred in the Coverage class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
39 cout << "An unknown error has occurred in the Coverage class function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
45 /***********************************************************************/