]> git.donarmstrong.com Git - mothur.git/blobdiff - mothurout.h
changes while testing
[mothur.git] / mothurout.h
index efb3823aa74fb162bc1e1d0090d3af958f89f777..9987374e6c824cafe4aaf343c319d5bca14f209b 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,7 @@ class MothurOut {
                bool isTrue(string);
                bool isContainingOnlyDigits(string);
                bool isNumeric1(string);
+        string findEdianness();
        
                
                //string manipulation
@@ -153,13 +156,17 @@ class MothurOut {
         string makeList(vector<string>&);
         bool isSubset(vector<string>, vector<string>); //bigSet, subset
         int checkName(string&);
+        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> >&);