StochHMM
v0.34
Flexible Hidden Markov Model C++ Library and Application
|
#include <stochTable.h>
Classes | |
struct | stoch_val |
Public Member Functions | |
alt_simple_stochTable (size_t states, size_t seq_length) | |
~alt_simple_stochTable () | |
void | push (size_t pos, size_t st, size_t st_to, float val) |
void | push_ending (size_t st_to, float val) |
void | traceback (traceback_path &path) |
void | finalize () |
std::string | stringify () |
void | print () |
Private Attributes | |
size_t | states |
size_t | seq_length |
std::vector< std::vector < std::vector< stoch_val > > > * | table |
std::vector< stoch_val > | ending |
Definition at line 97 of file stochTable.h.
StochHMM::alt_simple_stochTable::alt_simple_stochTable | ( | size_t | states, |
size_t | seq_length | ||
) |
Definition at line 353 of file stochTable.cpp.
References seq_length, and states.
StochHMM::alt_simple_stochTable::~alt_simple_stochTable | ( | ) |
void StochHMM::alt_simple_stochTable::finalize | ( | ) |
Finalized stochTable Normalizes the traceback pointer values and calculates the previous cell iterator within the previous position segment. This speeds up the the referencing necessary for tracebacks across the traceback table.
Definition at line 376 of file stochTable.cpp.
References StochHMM::addLog(), ending, seq_length, and states.
Referenced by StochHMM::trellis::simple_simple_stochastic_viterbi().
void StochHMM::alt_simple_stochTable::print | ( | ) |
Definition at line 464 of file stochTable.cpp.
References stringify().
void StochHMM::alt_simple_stochTable::push | ( | size_t | pos, |
size_t | st, | ||
size_t | st_to, | ||
float | val | ||
) |
Definition at line 362 of file stochTable.cpp.
Referenced by StochHMM::trellis::simple_simple_stochastic_viterbi().
void StochHMM::alt_simple_stochTable::push_ending | ( | size_t | st_to, |
float | val | ||
) |
Definition at line 367 of file stochTable.cpp.
References ending.
Referenced by StochHMM::trellis::simple_simple_stochastic_viterbi().
std::string StochHMM::alt_simple_stochTable::stringify | ( | ) |
Definition at line 448 of file stochTable.cpp.
References seq_length, and states.
Referenced by print().
void StochHMM::alt_simple_stochTable::traceback | ( | traceback_path & | path | ) |
Traceback through the table using the traceback probabilities
[out] | path | Reference to traceback_path |
Definition at line 412 of file stochTable.cpp.
References ending, StochHMM::traceback_path::push_back(), SIZE_MAX, and UINT16_MAX.
|
private |
Definition at line 119 of file stochTable.h.
Referenced by finalize(), push_ending(), and traceback().
|
private |
Definition at line 117 of file stochTable.h.
Referenced by alt_simple_stochTable(), finalize(), and stringify().
|
private |
Definition at line 116 of file stochTable.h.
Referenced by alt_simple_stochTable(), finalize(), and stringify().
|
private |
Definition at line 118 of file stochTable.h.
Referenced by ~alt_simple_stochTable().