X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=qstat.cpp;h=ed4471a8d18b983294bd3824832d093316fe40fa;hb=b02ee39bf6c708a98748f8861846cdec7fab58ac;hp=591c36af19637184d9f43c6e23eeb6f4b47863d8;hpb=eb1c88346fb246e95a6b38935b103f95e38b82ca;p=mothur.git diff --git a/qstat.cpp b/qstat.cpp index 591c36a..ed4471a 100644 --- a/qstat.cpp +++ b/qstat.cpp @@ -3,12 +3,12 @@ * Mothur * * Created by Thomas Ryabin on 3/4/09. - * Copyright 2009 __MyCompanyName__. All rights reserved. + * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved. * */ #include "qstat.h" -#include "calculator.h" + /***********************************************************************/ @@ -33,20 +33,17 @@ EstOutput QStat::getValues(SAbundVector* rank){ int r3Ind = 0; int sumSpec = 0; int iqSum = 0; - for(int i = 1; i < rank->size(); i++) - { + for(int i = 1; i < rank->size(); i++) { if(r1 != -1 && r3 != -1) i = rank->size(); sumSpec += rank->get(i); - if(r1 == -1 && sumSpec >= numSpec*.25) - { + if(r1 == -1 && sumSpec >= numSpec*.25) { r1 = rank->get(i); r1Ind = i; } - else if(r3 == -1 && sumSpec >= numSpec*.75) - { + else if(r3 == -1 && sumSpec >= numSpec*.75) { r3 = rank->get(i); r3Ind = i; } @@ -63,11 +60,11 @@ EstOutput QStat::getValues(SAbundVector* rank){ return data; } catch(exception& e) { - cout << "Standard Error: " << e.what() << " has occurred in the NPShannon class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; + cout << "Standard Error: " << e.what() << " has occurred in the QStat class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; exit(1); } catch(...) { - cout << "An unknown error has occurred in the NPShannon class function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; + cout << "An unknown error has occurred in the QStat class function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; exit(1); } }