]> git.donarmstrong.com Git - mothur.git/blob - linearalgebra.h
fixed trim.seqs bug with qtrim parameter and added num=1 special case to database...
[mothur.git] / linearalgebra.h
1 #ifndef LINEARALGEBRA
2 #define LINEARALGEBRA
3
4 /*
5  *  linearalgebra.h
6  *  mothur
7  *
8  *  Created by westcott on 1/7/11.
9  *  Copyright 2011 Schloss Lab. All rights reserved.
10  *
11  */
12
13 #include "mothurout.h"
14
15 class LinearAlgebra {
16         
17 public:
18         LinearAlgebra() { m = MothurOut::getInstance(); }
19         ~LinearAlgebra() {}
20         
21         vector<vector<double> > matrix_mult(vector<vector<double> >, vector<vector<double> >);
22         int tred2(vector<vector<double> >&, vector<double>&, vector<double>&);
23         int qtli(vector<double>&, vector<double>&, vector<vector<double> >&);
24         vector< vector<double> > calculateEuclidianDistance(vector<vector<double> >&, int); //pass in axes and number of dimensions
25         vector< vector<double> > calculateEuclidianDistance(vector<vector<double> >&); //pass in axes
26         double calcPearson(vector<vector<double> >&, vector<vector<double> >&);
27         
28 private:
29         MothurOut* m;
30         
31         double pythag(double, double);
32 };
33
34 #endif
35