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
|
/*
* modelmorphology.h
*
* Created on: Apr 15, 2014
* Author: minh
*/
#ifndef MODELMORPHOLOGY_H_
#define MODELMORPHOLOGY_H_
#include "modelgtr.h"
/**
* This class implement ML model for morphological data. Such models are:
* - Mk (Lewis 2001) a JC-type model
* - ORDERED: allowing only transition from state i to i-1 and i+1
* TODO: Mkv to account for absence of constant sites
*/
class ModelMorphology: public ModelGTR {
public:
/**
constructor
@param model_name model name, e.g., JC, HKY.
@param freq state frequency type
@param tree associated phylogenetic tree
*/
ModelMorphology(const char *model_name, string model_params, StateFreqType freq, string freq_params, PhyloTree *tree);
/**
initialization, called automatically by the constructor, no need to call it
@param model_name model name, e.g., JC, HKY.
@param freq state frequency type
*/
virtual void init(const char *model_name, string model_params, StateFreqType freq, string freq_params);
/**
return the number of dimensions
*/
virtual int getNDim() { return 0; }
virtual ~ModelMorphology();
};
#endif /* MODELMORPHOLOGY_H_ */
|