]> git.donarmstrong.com Git - mothur.git/blob - linearalgebra.h
pca command
[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);
25         double calcPearson(vector<vector<double> >&, vector<vector<double> >&);
26         
27 private:
28         MothurOut* m;
29         
30         double pythag(double, double);
31 };
32
33 #endif
34