47 RowMatrix<double>* mat =
new RowMatrix<double>(n, n);
48 for (
size_t i = 0; i < n; ++i)
50 for (
size_t j = 0; j < n; ++j)
61 label_(model->getNumberOfStates(), model->getNumberOfStates()),
62 supportedChars_(model->getAlphabetStates())
66 for (
size_t i = 0; i < n; ++i) {
67 for (
size_t j = 0; j < n; ++j) {
68 if (i == j)
label_(i, j) = 0;
69 else label_(i, j) = ++count;
Interface for all substitution models.
std::auto_ptr< SubstitutionRegister > register_
LabelSubstitutionCount(const SubstitutionModel *model)
Basic implementation of the the SubstitutionCount interface.
Matrix< double > * getAllNumbersOfSubstitutions(double length, size_t type=1) const
Get the numbers of susbstitutions on a branch, for each initial and final states, and given the branc...
const AlphabetIndex2 * weights_
std::vector< int > supportedChars_
LinearMatrix< double > label_
std::vector< int > supportedChars_