X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothurout.h;h=9987374e6c824cafe4aaf343c319d5bca14f209b;hb=3a5dd9e428ab93a6dcdce7912e8ebb977be0b893;hp=f99eac1917cbe2ce5a1ce278c66d27d1df71737e;hpb=de3d202264ab8a55fc91e0c2776aa5bed92bbf55;p=mothur.git diff --git a/mothurout.h b/mothurout.h index f99eac1..9987374 100644 --- a/mothurout.h +++ b/mothurout.h @@ -93,7 +93,9 @@ class MothurOut { string getRootName(string); bool isBlank(string); int openOutputFile(string, ofstream&); + int openOutputFileBinary(string, ofstream&); int openOutputFileAppend(string, ofstream&); + int openOutputFileBinaryAppend(string, ofstream&); int openInputFile(string, ifstream&); int openInputFile(string, ifstream&, string); //no error given string getline(ifstream&); @@ -107,6 +109,8 @@ class MothurOut { map readNames(string); map readNames(string, unsigned long int&); int readTax(string, map&); + vector readConsTax(string); + int readConsTax(string, map&); int readNames(string, map&, map&); int readNames(string, map&); int readNames(string, map&, bool); @@ -134,6 +138,7 @@ class MothurOut { bool isTrue(string); bool isContainingOnlyDigits(string); bool isNumeric1(string); + string findEdianness(); //string manipulation @@ -151,13 +156,17 @@ class MothurOut { string makeList(vector&); bool isSubset(vector, vector); //bigSet, subset int checkName(string&); + map > parseClasses(string); //math operation + double max(vector&); //returns largest value in vector + double min(vector&); //returns smallest value in vector int factorial(int num); vector > binomial(int); float ceilDist(float, int); float roundDist(float, int); unsigned int fromBase36(string); + double median(vector); int getRandomIndex(int); //highest double getStandardDeviation(vector&); vector getStandardDeviation(vector< vector >&);