COOPY » Guide
version 0.6.5
|
#include <Viterbi.h>
Public Member Functions | |
Viterbi () | |
void | setSize (int states, int sequence_length) |
void | reset () |
void | assertMode (int n_mode) |
void | addTransition (int s0, int s1, float c) |
void | endTransitions () |
void | beginTransitions () |
void | calculatePath () |
void | showPath () |
int | length () |
int | getPath (int i) |
int | operator() (int i) |
float | getCost () |
Data Fields | |
int | K |
int | T |
int | index |
int | mode |
int | path_valid |
float | best_cost |
coopy::store::SparseFloatSheet | cost |
coopy::store::SparseIntSheet | src |
coopy::store::SparseIntSheet | path |
coopy::cmp::Viterbi::Viterbi | ( | ) | [inline] |
void Viterbi::addTransition | ( | int | s0, |
int | s1, | ||
float | c | ||
) |
Definition at line 58 of file Viterbi.cpp.
Referenced by coopy::cmp::MeasureMan::compare1(), main(), and coopy::cmp::OrderMerge::merge().
void Viterbi::assertMode | ( | int | n_mode | ) |
Definition at line 24 of file Viterbi.cpp.
Referenced by beginTransitions(), and endTransitions().
void coopy::cmp::Viterbi::beginTransitions | ( | ) | [inline] |
Definition at line 50 of file Viterbi.h.
References assertMode(), and path_valid.
Referenced by coopy::cmp::MeasureMan::compare1(), main(), and coopy::cmp::OrderMerge::merge().
void Viterbi::calculatePath | ( | ) |
Definition at line 110 of file Viterbi.cpp.
References COOPY_ASSERT.
void coopy::cmp::Viterbi::endTransitions | ( | ) | [inline] |
Definition at line 45 of file Viterbi.h.
References assertMode(), and path_valid.
Referenced by coopy::cmp::MeasureMan::compare1(), main(), and coopy::cmp::OrderMerge::merge().
float coopy::cmp::Viterbi::getCost | ( | ) | [inline] |
Definition at line 76 of file Viterbi.h.
References best_cost, and calculatePath().
Referenced by coopy::cmp::MeasureMan::compare1().
int coopy::cmp::Viterbi::getPath | ( | int | i | ) | [inline] |
Definition at line 66 of file Viterbi.h.
References calculatePath(), COOPY_ASSERT, index, and path.
Referenced by coopy::cmp::OrderMerge::merge(), and operator()().
int coopy::cmp::Viterbi::length | ( | ) | [inline] |
Definition at line 59 of file Viterbi.h.
References calculatePath(), and index.
Referenced by coopy::cmp::MeasureMan::compare1(), and coopy::cmp::OrderMerge::merge().
int coopy::cmp::Viterbi::operator() | ( | int | i | ) | [inline] |
void coopy::cmp::Viterbi::reset | ( | ) | [inline] |
void Viterbi::setSize | ( | int | states, |
int | sequence_length | ||
) |
Definition at line 14 of file Viterbi.cpp.
Referenced by coopy::cmp::MeasureMan::compare1(), main(), and coopy::cmp::OrderMerge::merge().
void Viterbi::showPath | ( | ) |
Definition at line 146 of file Viterbi.cpp.
Referenced by main().
Definition at line 20 of file Viterbi.h.
Referenced by beginTransitions(), endTransitions(), and reset().