#include <Permutation.h>
Public Member Functions | |
| Permutation (const std::string &alignment=std::string(), const int sourceLength=0, const int targetLength=0) | |
| ~Permutation () | |
| void | clear () |
| size_t | size () |
| void | set (const std::string &alignment, const int sourceLength) |
| float | distance (const Permutation &permCompare, const distanceMetric_t &strategy=HAMMING_DISTANCE) const |
| void | dump () const |
| size_t | getLength () const |
| std::vector< int > | getArray () const |
| int | getTargetLength () const |
Static Public Member Functions | |
| static std::string | convertMosesToStandard (std::string const &alignment) |
| static std::vector< int > | invert (std::vector< int > const &inVector) |
| static bool | checkValidPermutation (std::vector< int > const &inVector) |
Protected Member Functions | |
| float | calculateHamming (const Permutation &compare) const |
| float | calculateKendall (const Permutation &compare) const |
Protected Attributes | |
| std::vector< int > | m_array |
| int | m_targetLength |
Definition at line 24 of file Permutation.h.
| MosesTuning::Permutation::Permutation | ( | const std::string & | alignment = std::string(), |
|
| const int | sourceLength = 0, |
|||
| const int | targetLength = 0 | |||
| ) |
| MosesTuning::Permutation::~Permutation | ( | ) | [inline] |
Definition at line 31 of file Permutation.h.
| float MosesTuning::Permutation::calculateHamming | ( | const Permutation & | compare | ) | const [protected] |
Definition at line 220 of file Permutation.cpp.
References getArray(), getLength(), and m_array.
Referenced by distance().


| float MosesTuning::Permutation::calculateKendall | ( | const Permutation & | compare | ) | const [protected] |
Definition at line 242 of file Permutation.cpp.
References getArray(), getLength(), and m_array.
Referenced by distance().


| static bool MosesTuning::Permutation::checkValidPermutation | ( | std::vector< int > const & | inVector | ) | [static] |
| void MosesTuning::Permutation::clear | ( | ) | [inline] |
| static std::string MosesTuning::Permutation::convertMosesToStandard | ( | std::string const & | alignment | ) | [static] |
| float MosesTuning::Permutation::distance | ( | const Permutation & | permCompare, | |
| const distanceMetric_t & | strategy = HAMMING_DISTANCE | |||
| ) | const |
Definition at line 185 of file Permutation.cpp.
References calculateHamming(), calculateKendall(), debug, dump(), getTargetLength(), MosesTuning::HAMMING_DISTANCE, and MosesTuning::KENDALL_DISTANCE.

| void MosesTuning::Permutation::dump | ( | ) | const |
Definition at line 33 of file Permutation.cpp.
References m_array.
Referenced by distance().

| vector< int > MosesTuning::Permutation::getArray | ( | ) | const |
Definition at line 273 of file Permutation.cpp.
References m_array.
Referenced by calculateHamming(), and calculateKendall().

| size_t MosesTuning::Permutation::getLength | ( | ) | const |
Definition at line 29 of file Permutation.cpp.
References m_array.
Referenced by calculateHamming(), and calculateKendall().

| int MosesTuning::Permutation::getTargetLength | ( | ) | const [inline] |
Definition at line 49 of file Permutation.h.
References m_targetLength.
Referenced by distance().

| static std::vector<int> MosesTuning::Permutation::invert | ( | std::vector< int > const & | inVector | ) | [static] |
| void MosesTuning::Permutation::set | ( | const std::string & | alignment, | |
| const int | sourceLength | |||
| ) |
| size_t MosesTuning::Permutation::size | ( | ) | [inline] |
std::vector<int> MosesTuning::Permutation::m_array [protected] |
Definition at line 60 of file Permutation.h.
Referenced by calculateHamming(), calculateKendall(), clear(), dump(), getArray(), getLength(), and size().
int MosesTuning::Permutation::m_targetLength [protected] |
1.5.9