5 * Created by Thomas Ryabin on 3/6/09.
6 * Copyright 2009 __MyCompanyName__. All rights reserved.
10 #include "bergerparker.h"
11 #include "calculator.h"
13 /***************************************************************/
15 EstOutput BergerParker::getValues(SAbundVector* rank){
19 double BP = (double)rank->getNumSeqs()/(double)rank->getMaxRank();
20 //cout << "BP index = " << 1/BP << "\n\n";
23 if (isnan(data[0]) || isinf(data[0])) { data[0] = 0; }
28 cout << "Standard Error: " << e.what() << " has occurred in the NPShannon class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
32 cout << "An unknown error has occurred in the NPShannon class function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
37 /***********************************************************************/