]> git.donarmstrong.com Git - mothur.git/blobdiff - mothurout.h
added otulabels to heatmap.bin. made OTUlabels “smarter” so OTU01 and OTU001 are...
[mothur.git] / mothurout.h
index 77b1b6d4ec1efb758973d332aa8e4df00619f58b..f58f4e874a7f72961489d7e2651bda651e3d2bb4 100644 (file)
@@ -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&);
@@ -136,6 +138,9 @@ class MothurOut {
                bool isTrue(string);
                bool isContainingOnlyDigits(string);
                bool isNumeric1(string);
+        bool isLabelEquivalent(string, string);
+        string getSimpleLabel(string);
+        string findEdianness();
        
                
                //string manipulation
@@ -156,11 +161,14 @@ class MothurOut {
         map<string, vector<string> > parseClasses(string);
                
                //math operation
+        double max(vector<double>&); //returns largest value in vector
+        double min(vector<double>&); //returns smallest value in vector
                int factorial(int num);
                vector<vector<double> > binomial(int);
                float ceilDist(float, int);
                float roundDist(float, int);
                unsigned int fromBase36(string);
+        double median(vector<double>);
                int getRandomIndex(int); //highest
         double getStandardDeviation(vector<int>&);
         vector<double> getStandardDeviation(vector< vector<double> >&);