43 #include <Bpp/Clonable.h> 44 #include <Bpp/Seq/Alphabet/Alphabet.h> 45 #include <Bpp/Seq/Alphabet/NucleicAlphabet.h> 46 #include <Bpp/Numeric/VectorTools.h> 59 public virtual Clonable
99 virtual std::vector<size_t>
getModelStates(
const std::string& code)
const = 0;
147 return VectorTools::whichAll(
states_, code);
196 #endif //_STATEMAP_H_ AbstractStateMap(const AbstractStateMap &absm)
virtual std::vector< size_t > getModelStates(const std::string &code) const
virtual const Alphabet * getAlphabet() const
virtual int getAlphabetStateAsInt(size_t index) const =0
virtual const std::vector< int > & getAlphabetStates() const
This class implements a state map where all resolved states are modeled.
virtual size_t getNumberOfModelStates() const
virtual CanonicalStateMap * clone() const
virtual size_t getNumberOfModelStates() const =0
virtual std::string getAlphabetStateAsChar(size_t index) const =0
AbstractStateMap & operator=(const AbstractStateMap &absm)
virtual StateMap * clone() const =0
virtual std::vector< size_t > getModelStates(int code) const
MarkovModulatedStateMap(const StateMap &unitMap, unsigned int nbClasses)
virtual MarkovModulatedStateMap * clone() const
virtual std::vector< size_t > getModelStates(const std::string &code) const =0
virtual const Alphabet * getAlphabet() const =0
CanonicalStateMap(const Alphabet *alphabet, bool includeGaps)
const Alphabet * alphabet_
virtual std::string getAlphabetStateAsChar(size_t index) const
virtual const std::vector< int > & getAlphabetStates() const =0
virtual int getAlphabetStateAsInt(size_t index) const
This class implements a state map for Markov modulated models.
Map the states of a given alphabet which have a model state.
std::vector< int > states_
A convenience partial implementation of the StateMap interface.
AbstractStateMap(const Alphabet *alphabet)