|
bpp-seq3
3.0.0
|
Simple Substitution Matrix, with match and mismatch penalties. More...
#include <Bpp/Seq/AlphabetIndex/SimpleScore.h>
Inheritance diagram for bpp::SimpleScore:
Collaboration diagram for bpp::SimpleScore: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 override |
Methods from the AlphabetIndex2 interface. | |
| double | getIndex (int state1, int state2) const override |
| Get the index associated to a pair of states. More... | |
| double | getIndex (const std::string &state1, const std::string &state2) const override |
| Get the index associated to a pair of states. More... | |
| std::shared_ptr< const Alphabet > | getAlphabet () const override |
| Get the alphabet associated to this index. More... | |
| const Alphabet & | alphabet () const override |
| Get the alphabet associated to this index. More... | |
| const Matrix< double > & | getIndexMatrix () const override |
| bool | isSymmetric () const override |
Private Attributes | |
| LinearMatrix< double > | distanceMatrix_ |
| std::shared_ptr< const Alphabet > | alphabet_ |
Simple Substitution Matrix, with match and mismatch penalties.
Definition at line 23 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 14 of file SimpleScore.cpp.
References alphabet_, and distanceMatrix_.
Referenced by clone().
|
inline |
Definition at line 40 of file SimpleScore.h.
|
inlinevirtual |
Definition at line 52 of file SimpleScore.h.
|
inlineoverridevirtual |
Get the alphabet associated to this index.
Implements bpp::AlphabetIndex2.
Definition at line 65 of file SimpleScore.h.
References alphabet_.
|
inlineoverridevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 54 of file SimpleScore.h.
References SimpleScore().
|
inlineoverridevirtual |
Get the alphabet associated to this index.
Implements bpp::AlphabetIndex2.
Definition at line 64 of file SimpleScore.h.
References alphabet_.
|
overridevirtual |
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 36 of file SimpleScore.cpp.
References alphabet_, and distanceMatrix_.
|
overridevirtual |
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 29 of file SimpleScore.cpp.
References alphabet_, and distanceMatrix_.
|
inlineoverridevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 66 of file SimpleScore.h.
References distanceMatrix_.
|
inlineoverridevirtual |
Implements bpp::AlphabetIndex2.
Definition at line 67 of file SimpleScore.h.
|
inline |
Definition at line 45 of file SimpleScore.h.
References alphabet_, and distanceMatrix_.
|
private |
Definition at line 28 of file SimpleScore.h.
Referenced by alphabet(), getAlphabet(), getIndex(), operator=(), and SimpleScore().
|
private |
Definition at line 27 of file SimpleScore.h.
Referenced by getIndex(), getIndexMatrix(), operator=(), and SimpleScore().