-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathExpert.H
45 lines (44 loc) · 924 Bytes
/
Expert.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef _EXPERT_
#define _EXPERT_
#include <vector>
using namespace std;
#include "gsl/gsl_randist.h"
#include "CommonTypes.H"
#define PI 3.1472
class Matrix;
class Expert
{
public:
Expert();
~Expert();
int setMean(Matrix*);
int setCovariance(Matrix*);
double getOutputPDF(vector<double>* y);
double getOutputPDF_Nocov(vector<double>* y);
int setPrior(double);
double getPrior();
Matrix* getMean();
Matrix* getCovariance();
int updateCovariance();
int assignGeneToExpert(const char*);
map<string,int>& getGeneSet();
int resetAssignedGenes();
double getEntropy();
int generateSample(gsl_rng* r, vector<double>&);
int resetClip();
int getClip();
inline double getMinPDF()
{
return minpdf;
}
private:
Matrix* covariance;
Matrix* invCovariance;
Matrix* mean;
double normFactor;
map<string,int> geneSet;
double priorProb;
int clipCnt;
double minpdf;
};
#endif