5 // Created by Patrick Schloss on 11/8/12.
6 // Copyright (c) 2012 University of Michigan. All rights reserved.
9 #ifndef pds_dmm_qFinderDMM_h
10 #define pds_dmm_qFinderDMM_h
12 #include "communitytype.h"
14 /**************************************************************************************************/
16 class qFinderDMM : public CommunityTypeFinder {
19 qFinderDMM(vector<vector<int> >, int);
20 void printFitData(ofstream&);
21 void printFitData(ostream&, double);
25 void optimizeLambda();
28 double negativeLogEvidenceLambdaPi(vector<double>&);
29 void negativeLogDerivEvidenceLambdaPi(vector<double>&, vector<double>&);
30 double getNegativeLogEvidence(vector<double>&, int);
31 double getNegativeLogLikelihood();
34 int lineMinimizeFletcher(vector<double>&, vector<double>&, double, double, double, double&, double&, vector<double>&, vector<double>&);
35 int bfgs2_Solver(vector<double>&);//, double, double);
42 /**************************************************************************************************/