bpp-seq
2.2.0
|
Simple Substitution Matrix, with match and mismatch penalties. More...
#include <Bpp/Seq/AlphabetIndex/SimpleScore.h>
Public Member Functions | |
SimpleScore (const Alphabet *alphabet, double match, double mismatch) | |
Build a new simpleScore object. More... | |
SimpleScore (const SimpleScore &sc) | |
SimpleScore & | operator= (const SimpleScore &sc) |
virtual | ~SimpleScore () |
SimpleScore * | clone () const |
Methods from the AlphabetIndex2 interface. | |
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... | |
LinearMatrix< double > * | getIndexMatrix () const |
bool | isSymmetric () const |
Private Attributes | |
LinearMatrix< double > | distanceMatrix_ |
const Alphabet * | alphabet_ |
Simple Substitution Matrix, with match and mismatch penalties.
Definition at line 57 of file SimpleScore.h.
SimpleScore::SimpleScore | ( | const Alphabet * | alphabet, |
double | match, | ||
double | mismatch | ||
) |
Build a new simpleScore object.
alphabet | The alphabet to use. |
match | Matching score. |
mismatch | Mismatching penalty. |
Definition at line 49 of file SimpleScore.cpp.
References alphabet_, distanceMatrix_, and bpp::Alphabet::getSize().
Referenced by clone().
|
inline |
Definition at line 74 of file SimpleScore.h.
|
inlinevirtual |
Definition at line 86 of file SimpleScore.h.
|
inlinevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 88 of file SimpleScore.h.
References SimpleScore().
|
inlinevirtual |
Get the alphabet associated to this index.
Implements bpp::AlphabetIndex2.
Definition at line 98 of file SimpleScore.h.
References alphabet_.
|
virtual |
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 64 of file SimpleScore.cpp.
|
virtual |
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 72 of file SimpleScore.cpp.
|
virtual |
Implements bpp::AlphabetIndex2.
Definition at line 80 of file SimpleScore.cpp.
References distanceMatrix_.
|
inlinevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 100 of file SimpleScore.h.
|
inline |
Definition at line 79 of file SimpleScore.h.
References alphabet_, and distanceMatrix_.
|
private |
Definition at line 62 of file SimpleScore.h.
Referenced by getAlphabet(), operator=(), and SimpleScore().
|
private |
Definition at line 61 of file SimpleScore.h.
Referenced by getIndexMatrix(), operator=(), and SimpleScore().