-
Notifications
You must be signed in to change notification settings - Fork 5
/
model.h
60 lines (58 loc) · 2.39 KB
/
model.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef __MODEL_H__
#define __MODEL_H__
int AreDoublesEqual (MrBFlt x, MrBFlt y, MrBFlt tol);
int ChangeNumRuns (int from, int to);
int ChangeNumChains (int from, int to);
int CheckModel (void);
int DoesTreeSatisfyConstraints (Tree *t);
int DoLink (void);
int DoLinkParm (char *parmName, char *tkn);
int DoLset (void);
int DoLsetParm (char *parmName, char *tkn);
int DoPlot (void);
int DoPlotParm (char *parmName, char *tkn);
int DoPropset (void);
int DoPropsetParm (char *parmName, char *tkn);
int DoPrset (void);
int DoPrsetParm (char *parmName, char *tkn);
int DoQuit (void);
int DoReport (void);
int DoReportParm (char *parmName, char *tkn);
int DoShowMcmcTrees (void);
int DoShowModel (void);
int DoShowMoves (void);
int DoShowmovesParm (char *parmName, char *tkn);
int DoShowParams (void);
int DoStartvals (void);
int DoStartvalsParm (char *parmName, char *tkn);
int DoUnlink (void);
int FillNormalParams (RandLong *seed, int fromChain, int toChain);
int FillRelPartsString (Param *p, char **relPartString);
void FillStdStateFreqs (int chfrom, int chto, RandLong *seed);
int FillTopologySubParams (Param *param, int chn, int state, RandLong *seed);
int FillTreeParams (RandLong *seed, int fromChain, int toChain);
int FreeModel (void);
int GetEmpiricalFreqs (int *relParts, int nRelParts);
int GetNumDivisionChars (void);
int *GetParamIntVals (Param *parm, int chain, int state);
MrBFlt *GetParamStdStateFreqs (Param *parm, int chain, int state);
MrBFlt *GetParamSubVals (Param *parm, int chain, int state);
MrBFlt *GetParamVals (Param *parm, int chain, int state);
Tree *GetTree (Param *parm, int chain, int state);
Tree *GetTreeFromIndex (int index, int chain, int state);
int InitializeLinks (void);
int InitializeTreeCalibrations (Tree *t);
int Link (void);
int SetAARates (void);
int SetLocalTaxa (void);
int SetModelDefaults (void);
int SetMoves (void);
int SetUpAnalysis (RandLong *seed);
void SetUpMoveTypes (void);
int ShowModel (void);
int Unlink (void);
int UpdateClockRate (MrBFlt clockRate, int chain);
int UpdateCppEvolLengths (Param *param, TreeNode *p, int chain);
int UpdateTK02EvolLengths (Param *param, Tree *t, int chain);
int UpdateIgrBrachLengths (Param *param, Tree *t, int chain);
#endif /* __MODEL_H__ */