|
bpp-seq
2.2.0
|
Simple dissimilarity distance. More...
#include <Bpp/Seq/AlphabetIndex/SimpleIndexDistance.h>
Inheritance diagram for bpp::SimpleIndexDistance:
Collaboration diagram for bpp::SimpleIndexDistance:Public Member Functions | |
| SimpleIndexDistance (AlphabetIndex1 *index) | |
| SimpleIndexDistance (const SimpleIndexDistance &sid) | |
| SimpleIndexDistance & | operator= (const SimpleIndexDistance &sid) |
| virtual | ~SimpleIndexDistance () |
| double | getIndex (int state1, int state2) const throw (BadIntException) |
| Get the index associated to a pair of states. More... | |
| double | getIndex (const std::string &state1, const std::string &state2) const throw (BadCharException) |
| Get the index associated to a pair of states. More... | |
| const Alphabet * | getAlphabet () const |
| Get the alphabet associated to this index. More... | |
| SimpleIndexDistance * | clone () const |
| Matrix< double > * | getIndexMatrix () const |
| void | setSymmetric (bool yn) |
| bool | isSymmetric () const |
| const AlphabetIndex1 & | getAlphabetIndex1 () const |
| AlphabetIndex1 & | getAlphabetIndex1 () |
Private Attributes | |
| std::auto_ptr< AlphabetIndex1 > | index_ |
| bool | sym_ |
Simple dissimilarity distance.
Take a one-dimensional index end return the difference between the indexes of two states.
Definition at line 61 of file SimpleIndexDistance.h.
|
inline |
Definition at line 69 of file SimpleIndexDistance.h.
Referenced by clone().
|
inline |
Definition at line 74 of file SimpleIndexDistance.h.
|
inlinevirtual |
Definition at line 86 of file SimpleIndexDistance.h.
|
inlinevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 103 of file SimpleIndexDistance.h.
References SimpleIndexDistance().
|
inlinevirtual |
Get the alphabet associated to this index.
Implements bpp::AlphabetIndex2.
Definition at line 101 of file SimpleIndexDistance.h.
References index_.
|
inline |
Definition at line 125 of file SimpleIndexDistance.h.
References index_.
|
inline |
Definition at line 129 of file SimpleIndexDistance.h.
References index_.
|
inlinevirtual | ||||||||||||||||||||
Get the index associated to a pair of states.
| state1 | First state to consider, as a int value. |
| state2 | Second state to consider, as a int value. |
Implements bpp::AlphabetIndex2.
Definition at line 89 of file SimpleIndexDistance.h.
Referenced by getIndexMatrix().
|
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 95 of file SimpleIndexDistance.h.
|
inlinevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 105 of file SimpleIndexDistance.h.
References getIndex(), and index_.
|
inlinevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 121 of file SimpleIndexDistance.h.
References sym_.
|
inline |
Definition at line 79 of file SimpleIndexDistance.h.
|
inline |
Definition at line 120 of file SimpleIndexDistance.h.
References sym_.
Referenced by bpp::BppOAlphabetIndex2Format::read().
|
private |
Definition at line 65 of file SimpleIndexDistance.h.
Referenced by getAlphabet(), getAlphabetIndex1(), getIndex(), getIndexMatrix(), and operator=().
|
private |
Definition at line 66 of file SimpleIndexDistance.h.
Referenced by getIndex(), isSymmetric(), operator=(), and setSymmetric().