5 #ifndef BPP_SEQ_PROBABILISTICSEQUENCE_H
6 #define BPP_SEQ_PROBABILISTICSEQUENCE_H
84 const std::string& name,
85 const std::vector<ProbabilisticSequence::SymbolType>& sequence,
86 std::shared_ptr<const Alphabet>&
alphabet) :
101 const std::string& name,
103 std::shared_ptr<const Alphabet>&
alphabet) :
118 const std::string& name,
119 const std::vector<ProbabilisticSequence::SymbolType>& sequence,
121 std::shared_ptr<const Alphabet>&
alphabet) :
138 const std::string& name,
141 std::shared_ptr<const Alphabet>&
alphabet) :
207 return (*
this)[sitePosition][
static_cast<size_t>(state)];
A partial implementation of the CoreSequence interface.
AbstractCoreSequence & operator=(const AbstractCoreSequence &s)
The core sequence interface.
The probabilistic sequence interface.
virtual ProbabilisticSequenceInterface * clone() const =0
std::vector< double > ElementType
virtual ~ProbabilisticSequenceInterface()
A basic implementation of the ProbabilisticSequence interface.
void setToSizeL(size_t newSize) override
Set up the size of a sequence from the left side.
ProbabilisticSequence(const ProbabilisticSequence &sequence)
The copy constructor.
double getStateValueAt(size_t sitePosition, int state) const override
get value of a state at a position
ProbabilisticSequence(const std::string &name, const std::vector< ProbabilisticSequence::SymbolType > &sequence, const Comments &comments, std::shared_ptr< const Alphabet > &alphabet)
Direct constructor : build a ProbabilisticSequence object from a vector.
ProbabilisticSequence(const std::string &name, const DTable &sequence, const Comments &comments, std::shared_ptr< const Alphabet > &alphabet)
Direct constructor : build a ProbabilisticSequence object from a DTable.
void setToSizeR(size_t newSize) override
Set up the size of a sequence from the right side.
ProbabilisticSequence & operator=(const ProbabilisticSequence &sequence)
The assignment operator.
ProbabilisticSequence(std::shared_ptr< const Alphabet > &alphabet)
Empty constructor : build a void ProbabilisticSequence with just an Alphabet.
ProbabilisticSequence(const std::string &name, const std::vector< ProbabilisticSequence::SymbolType > &sequence, std::shared_ptr< const Alphabet > &alphabet)
Direct constructor : build a ProbabilisticSequence object from a vector.
ProbabilisticSequence * clone() const override
ProbabilisticSequence(const std::string &name, const DTable &sequence, std::shared_ptr< const Alphabet > &alphabet)
Direct constructor : build a ProbabilisticSequence object from Table<double>.
virtual ~ProbabilisticSequence()
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.
const Alphabet & alphabet() const override
Get the alphabet associated to the list.
This alphabet is used to deal NumericAlphabet.
std::vector< std::string > Comments
Declaration of Comments type.