]> git.donarmstrong.com Git - mothur.git/blobdiff - linearalgebra.h
finished chimera.slayer adding trim parameter, added persample parameter to sub.sampl...
[mothur.git] / linearalgebra.h
diff --git a/linearalgebra.h b/linearalgebra.h
new file mode 100644 (file)
index 0000000..2acf5cb
--- /dev/null
@@ -0,0 +1,33 @@
+#ifndef LINEARALGEBRA
+#define LINEARALGEBRA
+
+/*
+ *  linearalgebra.h
+ *  mothur
+ *
+ *  Created by westcott on 1/7/11.
+ *  Copyright 2011 Schloss Lab. All rights reserved.
+ *
+ */
+
+#include "mothurout.h"
+
+class LinearAlgebra {
+       
+public:
+       LinearAlgebra() { m = MothurOut::getInstance(); }
+       ~LinearAlgebra() {}
+       
+       vector<vector<double> > matrix_mult(vector<vector<double> >, vector<vector<double> >);
+       int tred2(vector<vector<double> >&, vector<double>&, vector<double>&);
+       int qtli(vector<double>&, vector<double>&, vector<vector<double> >&);
+       
+       
+private:
+       MothurOut* m;
+       
+       double pythag(double, double);
+};
+
+#endif
+