bpp-seq3
3.0.0
|
Alphabet index given by user. More...
#include <Bpp/Seq/AlphabetIndex/UserAlphabetIndex2.h>
Public Member Functions | |
UserAlphabetIndex2 (std::shared_ptr< const Alphabet > alph, const Matrix< double > &mat) | |
UserAlphabetIndex2 (const UserAlphabetIndex2 &uAlph) | |
UserAlphabetIndex2 & | operator= (const UserAlphabetIndex2 &uAlph) |
virtual | ~UserAlphabetIndex2 () |
UserAlphabetIndex2 * | clone () const |
double | getIndex (int state1, int state2) const |
Get the index associated to a pair of states. More... | |
double | getIndex (const std::string &state1, const std::string &state2) const |
Get the index associated to a pair of states. More... | |
void | setIndexMatrix (const Matrix< double > &mat) |
LinearMatrix< double > * | getIndexMatrix () const |
std::shared_ptr< const Alphabet > | getAlphabet () const |
Get the alphabet associated to this index. More... | |
const Alphabet & | alphabet () const |
Get the alphabet associated to this index. More... | |
virtual bool | isSymmetric () const |
Private Attributes | |
std::shared_ptr< const Alphabet > | alph_ |
LinearMatrix< double > | index_ |
bool | sym_ |
Alphabet index given by user.
Definition at line 21 of file UserAlphabetIndex2.h.
|
inline |
Definition at line 30 of file UserAlphabetIndex2.h.
References index_, bpp::MatrixTools::isSymmetric(), and sym_.
Referenced by clone().
|
inline |
Definition at line 38 of file UserAlphabetIndex2.h.
|
inlinevirtual |
Definition at line 53 of file UserAlphabetIndex2.h.
|
inlinevirtual |
Get the alphabet associated to this index.
Implements bpp::AlphabetIndex2.
Definition at line 78 of file UserAlphabetIndex2.h.
References alph_.
|
inlinevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 55 of file UserAlphabetIndex2.h.
References UserAlphabetIndex2().
|
inlinevirtual |
Get the alphabet associated to this index.
Implements bpp::AlphabetIndex2.
Definition at line 76 of file UserAlphabetIndex2.h.
References alph_.
|
inlinevirtual |
Get the index associated to a pair of states.
state1 | First state to consider, as a string value. |
state2 | Second state to consider, as a string value. |
Implements bpp::AlphabetIndex2.
Definition at line 63 of file UserAlphabetIndex2.h.
|
inlinevirtual |
Get the index associated to a pair of states.
state1 | First state to consider, as a int value in the Alphabet |
state2 | Second state to consider, as a int value in the Alphabet |
Implements bpp::AlphabetIndex2.
Definition at line 58 of file UserAlphabetIndex2.h.
|
inlinevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 74 of file UserAlphabetIndex2.h.
References index_.
|
inlinevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 83 of file UserAlphabetIndex2.h.
References sym_.
|
inline |
Definition at line 44 of file UserAlphabetIndex2.h.
|
inline |
Definition at line 68 of file UserAlphabetIndex2.h.
References index_, bpp::MatrixTools::isSymmetric(), and sym_.
|
private |
Definition at line 25 of file UserAlphabetIndex2.h.
Referenced by alphabet(), getAlphabet(), getIndex(), and operator=().
|
private |
Definition at line 26 of file UserAlphabetIndex2.h.
Referenced by getIndex(), getIndexMatrix(), operator=(), setIndexMatrix(), and UserAlphabetIndex2().
|
private |
Definition at line 27 of file UserAlphabetIndex2.h.
Referenced by isSymmetric(), operator=(), setIndexMatrix(), and UserAlphabetIndex2().