5 #ifndef BPP_SEQ_PROBABILISTICSITE_H
6 #define BPP_SEQ_PROBABILISTICSITE_H
142 return (*
this)[sequencePosition][
static_cast<size_t>(state)];
A partial implementation of the CoreSite interface.
AbstractCoreSite & operator=(const CoreSiteInterface &site)
int getCoordinate() const override
Get the coordinate associated to this site.
The ProbabilisticSite interface.
virtual ProbabilisticSiteInterface * clone() const =0
virtual ~ProbabilisticSiteInterface()
ProbabilisticSite(const Table< double > &site, std::shared_ptr< const Alphabet > &alpha)
Build a new ProbabilisticSite object with the specified alphabet. The content of the site is initiali...
virtual ~ProbabilisticSite()
ProbabilisticSite(std::shared_ptr< const Alphabet > &alpha)
Build a new void ProbabilisticSite object with the specified alphabet.
ProbabilisticSite(const ProbabilisticSite &site)
The copy constructor.
ProbabilisticSite & operator=(const ProbabilisticSiteInterface &site)
ProbabilisticSite & operator=(const ProbabilisticSite &site)
The assignment operator.
double getStateValueAt(size_t sequencePosition, int state) const
get value of a state at a position
ProbabilisticSite(std::shared_ptr< const Alphabet > &alpha, int position)
Build a new void ProbabilisticSite object with the specified alphabet and position.
ProbabilisticSite(const ProbabilisticSiteInterface &site)
ProbabilisticSite(const Table< double > &site, std::shared_ptr< const Alphabet > &alpha, int position)
Build a new ProbabilisticSite object with the specified alphabet and position. The content of the pro...
ProbabilisticSite * clone() const
The ProbabilisticSymbolList interface.
ProbabilisticSymbolList object.
ProbabilisticSymbolList & operator=(const ProbabilisticSymbolListInterface &list)
The generic assignment operator.
size_t size() const override
Get the number of elements in the list.
This alphabet is used to deal NumericAlphabet.