-
Notifications
You must be signed in to change notification settings - Fork 0
/
modelunrest.h
54 lines (42 loc) · 1.15 KB
/
modelunrest.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
/*
* modelunrest.h
*
* Created on: 24/05/2016
* Author: Michael Woodhams
*/
#ifndef MODELUNREST_H_
#define MODELUNREST_H_
#include "modelmarkov.h"
class ModelUnrest: public ModelMarkov {
public:
/** constructor */
ModelUnrest(PhyloTree *tree, string model_params, StateFreqType freq_type, string freq_params);
/**
* true if model_name is the name of some known non-reversible model
*/
static bool validModelName(string model_name);
/**
* setup the bounds for joint optimization with BFGS
*/
virtual void setBounds(double *lower_bound, double *upper_bound, bool *bound_check);
/**
set the state frequency vector.
@param state_freq state frequency vector. Assume state_freq has size of num_states
*/
virtual void setStateFrequency(double *state_freq);
/**
start structure for checkpointing
*/
virtual void startCheckpoint();
/**
save object into the checkpoint
*/
virtual void saveCheckpoint();
/**
restore object from the checkpoint
*/
virtual void restoreCheckpoint();
protected:
virtual void setRates();
};
#endif /* MODELUNREST_H_ */