]> git.donarmstrong.com Git - mothur.git/blob - qFinderDMM.h
added Jensen-Shannon calc. working on get.communitytype command. fixed bug in get...
[mothur.git] / qFinderDMM.h
1 //
2 //  qFinderDMM.h
3 //  pds_dmm
4 //
5 //  Created by Patrick Schloss on 11/8/12.
6 //  Copyright (c) 2012 University of Michigan. All rights reserved.
7 //
8
9 #ifndef pds_dmm_qFinderDMM_h
10 #define pds_dmm_qFinderDMM_h
11
12 #include "communitytype.h"
13
14 /**************************************************************************************************/
15
16 class qFinderDMM : public CommunityTypeFinder {
17   
18 public:
19     qFinderDMM(vector<vector<int> >, int);
20     void printFitData(ofstream&);
21     void printFitData(ostream&, double);
22     
23 private:
24    
25     void optimizeLambda();
26     void calculatePiK();
27
28     double negativeLogEvidenceLambdaPi(vector<double>&);
29     void negativeLogDerivEvidenceLambdaPi(vector<double>&, vector<double>&);
30     double getNegativeLogEvidence(vector<double>&, int);
31     double getNegativeLogLikelihood();
32     
33     
34     int lineMinimizeFletcher(vector<double>&, vector<double>&, double, double, double, double&, double&, vector<double>&, vector<double>&);
35     int bfgs2_Solver(vector<double>&);//, double, double);
36     
37    
38
39         
40 };
41
42 /**************************************************************************************************/
43
44 #endif