StochHMM
v0.34
Flexible Hidden Markov Model C++ Library and Application
|
#include <trellis.h>
Private Member Functions | |
double | getEndingTransition (size_t) |
double | getTransition (state *st, size_t trans_to_state, size_t sequencePosition) |
size_t | get_explicit_duration_length (transition *trans, size_t sequencePosition, size_t state_iter, size_t to_state) |
double | transitionFuncTraceback (state *st, size_t position, transitionFuncParam *func) |
StochHMM::trellis::trellis | ( | ) |
Definition at line 13 of file trellis.cpp.
References alt_scoring_current, alt_scoring_previous, backward_score, dbl_backward_score, dbl_forward_score, dbl_posterior_score, dbl_viterbi_score, ending_backward_prob, ending_forward_prob, ending_nth_viterbi, ending_viterbi_score, ending_viterbi_tb, exDef_defined, forward_score, hmm, naive_nth_scores, nth_scoring_current, nth_scoring_previous, nth_size, nth_traceback_table, posterior_score, scoring_current, scoring_previous, seq_size, seqs, StochHMM::SIMPLE, SIZE_MAX, state_size, stochastic_table, store_values, traceback_table, type, and viterbi_score.
Definition at line 55 of file trellis.cpp.
References alt_scoring_current, alt_scoring_previous, backward_score, dbl_backward_score, dbl_forward_score, dbl_posterior_score, dbl_viterbi_score, ending_backward_prob, ending_forward_prob, ending_nth_viterbi, ending_viterbi_score, ending_viterbi_tb, exDef_defined, StochHMM::sequences::exDefDefined(), forward_score, StochHMM::sequences::getLength(), hmm, naive_nth_scores, nth_scoring_current, nth_scoring_previous, nth_size, nth_traceback_table, posterior_score, scoring_current, scoring_previous, seq_size, seqs, StochHMM::SIMPLE, SIZE_MAX, StochHMM::model::state_size(), state_size, stochastic_table, store_values, traceback_table, type, and viterbi_score.
StochHMM::trellis::~trellis | ( | ) |
Definition at line 100 of file trellis.cpp.
References alt_scoring_current, alt_scoring_previous, backward_score, dbl_backward_score, dbl_forward_score, dbl_posterior_score, dbl_viterbi_score, ending_nth_viterbi, forward_score, naive_nth_scores, nth_scoring_current, nth_scoring_previous, nth_traceback_table, posterior_score, scoring_current, scoring_previous, stochastic_table, traceback_table, and viterbi_score.
void StochHMM::trellis::backward | ( | ) |
Definition at line 13 of file backward.cpp.
References backward(), exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::sequences::getLength(), hmm, seq_size, seqs, StochHMM::model::state_size(), and state_size.
void StochHMM::trellis::baum_welch | ( | ) |
void StochHMM::trellis::export_trellis | ( | std::ifstream & | ) |
void StochHMM::trellis::export_trellis | ( | std::string & | file | ) |
void StochHMM::trellis::fast_complex_backward | ( | ) |
void StochHMM::trellis::fast_complex_baum_welch | ( | ) |
void StochHMM::trellis::fast_complex_stochastic_forward | ( | ) |
void StochHMM::trellis::fast_complex_stochastic_viterbi | ( | ) |
void StochHMM::trellis::fast_complex_viterbi | ( | ) |
Store transition in a table (more memory, but faster than sparse complex) *Need testing and more develepment;
Definition at line 665 of file viterbi.cpp.
References ending_viterbi_score, ending_viterbi_tb, exDef_defined, StochHMM::sequences::exDefDefined(), explicit_duration_current, explicit_duration_previous, StochHMM::model::get_explicit(), StochHMM::model::getInitial(), StochHMM::model::getInitialTo(), getTransition(), StochHMM::sequences::getWeight(), hmm, StochHMM::model::isBasic(), scoring_current, scoring_previous, seq_size, seqs, state_size, swap_ptr, swap_ptr_duration, and traceback_table.
Referenced by viterbi().
void StochHMM::trellis::forward | ( | ) |
Definition at line 14 of file forward.cpp.
References exDef_defined, StochHMM::sequences::exDefDefined(), forward(), StochHMM::sequences::getLength(), hmm, seq_size, seqs, StochHMM::model::state_size(), and state_size.
|
inline |
Definition at line 300 of file trellis.h.
References dbl_posterior_score.
|
private |
Traceback to get the duration length of the state. If duration is already being tracked in the table then it will return value +1. Otherwise, it will traceback through the trellis until the traceback identifier is reached.
Definition at line 271 of file trellis.cpp.
References StochHMM::DIFF_STATE, explicit_duration_previous, StochHMM::state::getGFF(), StochHMM::state::getIterator(), StochHMM::state::getLabel(), StochHMM::state::getName(), StochHMM::model::getState(), StochHMM::transition::getTracebackIdentifier(), StochHMM::transition::getTracebackString(), hmm, SIZE_MAX, StochHMM::START_INIT, StochHMM::STATE_GFF, StochHMM::STATE_LABEL, and StochHMM::STATE_NAME.
Referenced by getTransition().
|
inline |
|
inline |
Definition at line 298 of file trellis.h.
References dbl_backward_score.
|
inline |
|
inline |
|
inline |
Definition at line 308 of file trellis.h.
References ending_backward_prob.
Referenced by print_limited_posterior(), and print_posterior().
|
inline |
|
private |
|
inline |
Definition at line 307 of file trellis.h.
References ending_forward_prob.
Referenced by print_limited_posterior(), and print_posterior().
|
inline |
|
inline |
Definition at line 109 of file trellis.h.
References hmm.
Referenced by print_limited_posterior(), and print_posterior().
|
inline |
Definition at line 305 of file trellis.h.
References posterior_score.
Referenced by print_limited_posterior(), and print_posterior().
|
inline |
Definition at line 110 of file trellis.h.
References seqs.
Referenced by print_limited_posterior(), and print_posterior().
|
private |
Definition at line 220 of file trellis.cpp.
References StochHMM::DURATION, StochHMM::transition::FunctionDefined(), get_explicit_duration_length(), StochHMM::transition::getExtFunction(), StochHMM::state::getIterator(), StochHMM::state::getTrans(), StochHMM::transition::getTransition(), StochHMM::transition::getTransitionType(), StochHMM::LEXICAL, seqs, StochHMM::STANDARD, traceback_table, and transitionFuncTraceback().
Referenced by fast_complex_viterbi(), naive_backward(), naive_baum_welch(), naive_forward(), naive_nth_viterbi(), naive_stochastic_forward(), naive_stochastic_viterbi(), naive_viterbi(), simple_backward(), simple_forward(), simple_nth_viterbi(), simple_posterior(), simple_simple_stochastic_viterbi(), simple_stochastic_forward(), simple_stochastic_viterbi(), simple_viterbi(), and sparse_complex_viterbi().
void StochHMM::trellis::naive_backward | ( | ) |
Naive Backward Implements the backward algorithm (simple coded, little or no optimizations) Stores the scores as doubles in table. Scoring table accessible from trellis -> getNaiveBackward();
Definition at line 35 of file backward.cpp.
References StochHMM::addLog(), dbl_backward_score, ending_backward_prob, StochHMM::model::getInitial(), StochHMM::model::getState(), getTransition(), hmm, seq_size, seqs, SIZE_MAX, and state_size.
Referenced by naive_baum_welch().
void StochHMM::trellis::naive_baum_welch | ( | ) |
Definition at line 21 of file baum_welch.cpp.
References StochHMM::addLog(), dbl_backward_score, dbl_baum_welch_score, dbl_forward_score, StochHMM::model::getState(), getTransition(), hmm, naive_backward(), naive_forward(), seq_size, seqs, and state_size.
Definition at line 16 of file baum_welch.cpp.
void StochHMM::trellis::naive_forward | ( | ) |
Definition at line 177 of file forward.cpp.
References StochHMM::addLog(), dbl_forward_score, ending_forward_prob, exDef_defined, StochHMM::state::get_emission_prob(), StochHMM::model::getInitial(), StochHMM::model::getState(), getTransition(), StochHMM::sequences::getWeight(), hmm, seq_size, seqs, and state_size.
Referenced by naive_baum_welch().
void StochHMM::trellis::naive_nth_viterbi | ( | size_t | n | ) |
Definition at line 194 of file nth_best.cpp.
References ending_nth_viterbi, exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::state::get_emission_prob(), StochHMM::model::getInitial(), StochHMM::model::getState(), getTransition(), StochHMM::sequences::getWeight(), hmm, naive_nth_scores, nth_size, seq_size, seqs, StochHMM::sort_scores(), and state_size.
Referenced by perform_nbest_decoding().
void StochHMM::trellis::naive_stochastic_forward | ( | ) |
Definition at line 174 of file stoch_forward.cpp.
References StochHMM::addLog(), dbl_forward_score, ending_forward_prob, exDef_defined, StochHMM::stochTable::finalize(), StochHMM::state::get_emission_prob(), StochHMM::model::getInitial(), StochHMM::model::getState(), getTransition(), StochHMM::sequences::getWeight(), hmm, StochHMM::stochTable::push(), seq_size, seqs, SIZE_MAX, state_size, and stochastic_table.
void StochHMM::trellis::naive_stochastic_viterbi | ( | ) |
Definition at line 181 of file stoch_viterbi.cpp.
References dbl_viterbi_score, ending_viterbi_score, ending_viterbi_tb, exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::stochTable::finalize(), StochHMM::state::get_emission_prob(), StochHMM::model::getInitial(), StochHMM::model::getState(), getTransition(), StochHMM::sequences::getWeight(), hmm, StochHMM::stochTable::push(), seq_size, seqs, SIZE_MAX, state_size, stochastic_table, and traceback_table.
Referenced by naive_stochastic_viterbi().
Definition at line 171 of file stoch_viterbi.cpp.
References exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::sequences::getLength(), hmm, naive_stochastic_viterbi(), seq_size, seqs, StochHMM::model::state_size(), and state_size.
void StochHMM::trellis::naive_viterbi | ( | ) |
Definition at line 201 of file viterbi.cpp.
References dbl_viterbi_score, ending_viterbi_score, ending_viterbi_tb, exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::state::get_emission_prob(), StochHMM::model::getInitial(), StochHMM::model::getState(), getTransition(), StochHMM::sequences::getWeight(), hmm, seq_size, seqs, state_size, and traceback_table.
Referenced by naive_viterbi().
Definition at line 187 of file viterbi.cpp.
References exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::sequences::getLength(), hmm, naive_viterbi(), seq_size, seqs, StochHMM::model::state_size(), and state_size.
void StochHMM::trellis::nth_viterbi | ( | ) |
void StochHMM::trellis::posterior | ( | ) |
Definition at line 13 of file posterior.cpp.
References simple_posterior().
Referenced by perform_posterior(), perform_stochastic_decoding(), and posterior().
Definition at line 19 of file posterior.cpp.
References ending_backward_prob, ending_forward_prob, exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::sequences::getLength(), hmm, posterior(), posterior_score, seq_size, seqs, StochHMM::model::state_size(), and state_size.
void StochHMM::trellis::print | ( | ) |
void StochHMM::trellis::reset | ( | ) |
Definition at line 148 of file trellis.cpp.
References alt_scoring_current, alt_scoring_previous, backward_score, dbl_backward_score, dbl_forward_score, dbl_posterior_score, dbl_viterbi_score, ending_backward_prob, ending_forward_prob, ending_nth_viterbi, ending_viterbi_score, ending_viterbi_tb, exDef_defined, forward_score, hmm, naive_nth_scores, nth_scoring_current, nth_scoring_previous, nth_size, nth_traceback_table, posterior_score, scoring_current, scoring_previous, seq_size, seqs, StochHMM::SIMPLE, SIZE_MAX, state_size, stochastic_table, store_values, traceback_table, type, and viterbi_score.
void StochHMM::trellis::simple_backward | ( | ) |
Definition at line 131 of file backward.cpp.
References StochHMM::addLog(), backward_score, ending_backward_prob, exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::state::get_emission_prob(), StochHMM::model::getEndingFrom(), StochHMM::model::getInitial(), getTransition(), StochHMM::sequences::getWeight(), hmm, scoring_current, scoring_previous, seq_size, seqs, SIZE_MAX, state_size, and swap_ptr.
Referenced by backward(), and simple_backward().
Definition at line 119 of file backward.cpp.
References exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::sequences::getLength(), hmm, seq_size, seqs, simple_backward(), StochHMM::model::state_size(), and state_size.
void StochHMM::trellis::simple_baum_welch | ( | ) |
void StochHMM::trellis::simple_forward | ( | ) |
Definition at line 44 of file forward.cpp.
References StochHMM::addLog(), ending_forward_prob, exDef_defined, StochHMM::sequences::exDefDefined(), forward_score, StochHMM::model::getInitial(), StochHMM::model::getInitialTo(), getTransition(), StochHMM::sequences::getWeight(), hmm, scoring_current, scoring_previous, seq_size, seqs, state_size, and swap_ptr.
Referenced by forward(), and simple_forward().
Definition at line 34 of file forward.cpp.
References exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::sequences::getLength(), hmm, seq_size, seqs, simple_forward(), StochHMM::model::state_size(), and state_size.
void StochHMM::trellis::simple_nth_viterbi | ( | size_t | n | ) |
Definition at line 31 of file nth_best.cpp.
References ending_nth_viterbi, exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::model::getInitial(), StochHMM::model::getInitialTo(), getTransition(), StochHMM::sequences::getWeight(), hmm, StochHMM::model::isBasic(), nth_scoring_current, nth_scoring_previous, nth_size, nth_swap_ptr, nth_traceback_table, seq_size, seqs, StochHMM::sort_scores(), and state_size.
void StochHMM::trellis::simple_posterior | ( | ) |
Definition at line 56 of file posterior.cpp.
References StochHMM::addLog(), ending_backward_prob, ending_forward_prob, exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::state::get_emission_prob(), StochHMM::model::getEndingFrom(), StochHMM::model::getInitial(), StochHMM::model::getInitialTo(), getTransition(), StochHMM::sequences::getWeight(), hmm, posterior_score, scoring_current, scoring_previous, seq_size, seqs, SIZE_MAX, state_size, and swap_ptr.
Referenced by posterior(), and simple_posterior().
Definition at line 36 of file posterior.cpp.
References ending_backward_prob, ending_forward_prob, exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::sequences::getLength(), hmm, StochHMM::model::isBasic(), posterior_score, seq_size, seqs, simple_posterior(), StochHMM::model::state_size(), and state_size.
Definition at line 407 of file stoch_viterbi.cpp.
References alt_simple_stochastic_table, ending_viterbi_score, ending_viterbi_tb, exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::alt_simple_stochTable::finalize(), StochHMM::model::getInitial(), StochHMM::model::getInitialTo(), StochHMM::sequences::getLength(), getTransition(), StochHMM::sequences::getWeight(), hmm, StochHMM::alt_simple_stochTable::push(), StochHMM::alt_simple_stochTable::push_ending(), scoring_current, scoring_previous, seq_size, seqs, StochHMM::model::state_size(), state_size, swap_ptr, and traceback_table.
void StochHMM::trellis::simple_stochastic_forward | ( | ) |
Definition at line 30 of file stoch_forward.cpp.
References StochHMM::addLog(), ending_forward_prob, exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::stochTable::finalize(), StochHMM::model::getInitial(), StochHMM::model::getInitialTo(), getTransition(), StochHMM::sequences::getWeight(), hmm, StochHMM::stochTable::push(), scoring_current, scoring_previous, seq_size, seqs, SIZE_MAX, state_size, stochastic_table, and swap_ptr.
Referenced by stochastic_forward().
void StochHMM::trellis::simple_stochastic_viterbi | ( | ) |
Definition at line 42 of file stoch_viterbi.cpp.
References ending_viterbi_score, ending_viterbi_tb, exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::stochTable::finalize(), StochHMM::model::getInitial(), StochHMM::model::getInitialTo(), getTransition(), StochHMM::sequences::getWeight(), hmm, StochHMM::stochTable::push(), scoring_current, scoring_previous, seq_size, seqs, SIZE_MAX, state_size, stochastic_table, swap_ptr, and traceback_table.
Referenced by simple_stochastic_viterbi(), and stochastic_viterbi().
Definition at line 32 of file stoch_viterbi.cpp.
References exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::sequences::getLength(), hmm, seq_size, seqs, simple_stochastic_viterbi(), StochHMM::model::state_size(), and state_size.
void StochHMM::trellis::simple_viterbi | ( | ) |
Definition at line 45 of file viterbi.cpp.
References ending_viterbi_score, ending_viterbi_tb, exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::model::getInitial(), StochHMM::model::getInitialTo(), getTransition(), StochHMM::sequences::getWeight(), hmm, StochHMM::model::isBasic(), scoring_current, scoring_previous, seq_size, seqs, state_size, swap_ptr, and traceback_table.
Referenced by simple_viterbi(), and viterbi().
Definition at line 34 of file viterbi.cpp.
References exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::sequences::getLength(), hmm, seq_size, seqs, simple_viterbi(), StochHMM::model::state_size(), and state_size.
void StochHMM::trellis::sparse_complex_backward | ( | ) |
void StochHMM::trellis::sparse_complex_baum_welch | ( | ) |
void StochHMM::trellis::sparse_complex_stochastic_forward | ( | ) |
void StochHMM::trellis::sparse_complex_viterbi | ( | ) |
Sparse Complex Viterbi Stores the transition duration probabilities in a hashmap (memory efficient, slower) The duratio probabilities can then be used in forward and backward algorithms.
Definition at line 470 of file viterbi.cpp.
References complex_transitions, ending_viterbi_score, ending_viterbi_tb, exDef_defined, StochHMM::sequences::exDefDefined(), explicit_duration_current, explicit_duration_previous, StochHMM::model::get_explicit(), StochHMM::model::getInitial(), StochHMM::model::getInitialTo(), getTransition(), StochHMM::sequences::getWeight(), hmm, StochHMM::model::isBasic(), scoring_current, scoring_previous, seq_size, seqs, state_size, swap_ptr, swap_ptr_duration, and traceback_table.
void StochHMM::trellis::stochastic_forward | ( | ) |
Definition at line 24 of file stoch_forward.cpp.
References simple_stochastic_forward().
Referenced by perform_stochastic_decoding(), and stochastic_forward().
Definition at line 13 of file stoch_forward.cpp.
References exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::sequences::getLength(), hmm, seq_size, seqs, StochHMM::model::state_size(), state_size, and stochastic_forward().
void StochHMM::trellis::stochastic_traceback | ( | traceback_path & | path | ) |
Definition at line 470 of file trellis.cpp.
References stochastic_table, and StochHMM::stochTable::traceback().
Referenced by perform_stochastic_decoding().
void StochHMM::trellis::stochastic_traceback | ( | multiTraceback & | paths, |
size_t | reps | ||
) |
Definition at line 477 of file trellis.cpp.
References StochHMM::multiTraceback::assign(), hmm, stochastic_table, and StochHMM::stochTable::traceback().
void StochHMM::trellis::stochastic_viterbi | ( | ) |
Definition at line 25 of file stoch_viterbi.cpp.
References hmm, StochHMM::model::isBasic(), and simple_stochastic_viterbi().
Referenced by perform_stochastic_decoding(), and stochastic_viterbi().
Definition at line 13 of file stoch_viterbi.cpp.
References exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::sequences::getLength(), hmm, seq_size, seqs, StochHMM::model::state_size(), state_size, and stochastic_viterbi().
|
inline |
|
inline |
std::string StochHMM::trellis::stringify | ( | ) |
void StochHMM::trellis::traceback | ( | traceback_path & | path | ) |
Perform traceback through trellis
Definition at line 402 of file trellis.cpp.
References ending_viterbi_score, ending_viterbi_tb, StochHMM::traceback_path::getModel(), hmm, StochHMM::traceback_path::push_back(), seq_size, StochHMM::traceback_path::setModel(), StochHMM::traceback_path::setScore(), and traceback_table.
Referenced by perform_viterbi_decoding().
void StochHMM::trellis::traceback | ( | traceback_path & | path, |
size_t | position, | ||
size_t | state | ||
) |
Perform a traceback starting at position and state given
[out] | traceback_path | |
position | Position to start traceback | |
state | State to begin traceback |
Definition at line 440 of file trellis.cpp.
References StochHMM::traceback_path::getModel(), hmm, StochHMM::traceback_path::push_back(), seq_size, StochHMM::traceback_path::setModel(), and traceback_table.
void StochHMM::trellis::traceback_nth | ( | traceback_path & | path, |
size_t | n | ||
) |
Definition at line 489 of file trellis.cpp.
References ending_nth_viterbi, naive_nth_scores, nth_size, nth_traceback_table, StochHMM::traceback_path::push_back(), StochHMM::nthScore::score_tb, seq_size, StochHMM::traceback_path::setScore(), and StochHMM::nthScore::st_tb.
Referenced by perform_nbest_decoding().
void StochHMM::trellis::traceback_nth_viterbi | ( | multiTraceback & | ) |
void StochHMM::trellis::traceback_posterior | ( | traceback_path & | path | ) |
Definition at line 331 of file posterior.cpp.
References StochHMM::max(), posterior_score, StochHMM::traceback_path::push_back(), seq_size, SIZE_MAX, and state_size.
Referenced by perform_posterior().
void StochHMM::trellis::traceback_stoch_posterior | ( | traceback_path & | path | ) |
Definition at line 355 of file posterior.cpp.
References posterior_score, StochHMM::traceback_path::push_back(), seq_size, SIZE_MAX, and state_size.
Referenced by perform_stochastic_decoding(), and traceback_stoch_posterior().
void StochHMM::trellis::traceback_stoch_posterior | ( | multiTraceback & | paths, |
size_t | reps | ||
) |
Definition at line 370 of file posterior.cpp.
References StochHMM::multiTraceback::assign(), hmm, and traceback_stoch_posterior().
|
private |
When a transitionFunc is to be called it must performs a traceback and get the required sequence to pass to the function
Definition at line 317 of file trellis.cpp.
References StochHMM::DIFF_STATE, StochHMM::transitionFuncParam::evaluate(), StochHMM::FULL, StochHMM::track::getAlphaMax(), StochHMM::transitionFuncParam::getCombineName(), StochHMM::transitionFuncParam::getCombineType(), StochHMM::state::getGFF(), StochHMM::track::getIndex(), StochHMM::state::getIterator(), StochHMM::state::getLabel(), StochHMM::state::getName(), StochHMM::sequences::getSeq(), StochHMM::model::getState(), StochHMM::sequence::getSymbol(), StochHMM::transitionFuncParam::getTracebackName(), StochHMM::transitionFuncParam::getTracebackType(), StochHMM::transitionFuncParam::getTrack(), StochHMM::sequences::getUndigitized(), hmm, StochHMM::track::isAlpha(), seqs, SIZE_MAX, StochHMM::START_INIT, StochHMM::STATE_GFF, StochHMM::STATE_LABEL, StochHMM::STATE_NAME, StochHMM::STATEGFF, StochHMM::STATELABEL, and StochHMM::STATENAME.
Referenced by getTransition().
void StochHMM::trellis::update_emissions | ( | ) |
Definition at line 89 of file baum_welch.cpp.
void StochHMM::trellis::update_transitions | ( | ) |
Definition at line 59 of file baum_welch.cpp.
References StochHMM::addLog(), dbl_backward_score, dbl_baum_welch_score, dbl_forward_score, ending_forward_prob, StochHMM::model::getStateName(), hmm, seq_size, and state_size.
void StochHMM::trellis::viterbi | ( | ) |
Definition at line 25 of file viterbi.cpp.
References fast_complex_viterbi(), hmm, StochHMM::model::isBasic(), and simple_viterbi().
Referenced by perform_viterbi_decoding(), and viterbi().
Definition at line 13 of file viterbi.cpp.
References exDef_defined, StochHMM::sequences::exDefDefined(), StochHMM::sequences::getLength(), hmm, seq_size, seqs, StochHMM::model::state_size(), state_size, and viterbi().
|
private |
Definition at line 367 of file trellis.h.
Referenced by reset(), trellis(), and ~trellis().
|
private |
Definition at line 368 of file trellis.h.
Referenced by reset(), trellis(), and ~trellis().
|
private |
Definition at line 336 of file trellis.h.
Referenced by simple_simple_stochastic_viterbi().
|
private |
Definition at line 341 of file trellis.h.
Referenced by getBackwardTable(), reset(), simple_backward(), trellis(), and ~trellis().
|
private |
|
private |
Definition at line 377 of file trellis.h.
Referenced by sparse_complex_viterbi().
|
private |
Definition at line 346 of file trellis.h.
Referenced by get_naive_backward_scores(), naive_backward(), naive_baum_welch(), reset(), trellis(), update_transitions(), and ~trellis().
|
private |
Definition at line 348 of file trellis.h.
Referenced by naive_baum_welch(), and update_transitions().
|
private |
Definition at line 344 of file trellis.h.
Referenced by get_naive_forward_scores(), naive_baum_welch(), naive_forward(), naive_stochastic_forward(), reset(), trellis(), update_transitions(), and ~trellis().
|
private |
Definition at line 347 of file trellis.h.
Referenced by get_dbl_posterior(), reset(), trellis(), and ~trellis().
|
private |
Definition at line 345 of file trellis.h.
Referenced by get_naive_viterbi_scores(), naive_stochastic_viterbi(), naive_viterbi(), reset(), trellis(), and ~trellis().
|
private |
Definition at line 358 of file trellis.h.
Referenced by getBackwardProbability(), naive_backward(), posterior(), reset(), simple_backward(), simple_posterior(), and trellis().
|
private |
Definition at line 357 of file trellis.h.
Referenced by getForwardProbability(), naive_forward(), naive_stochastic_forward(), posterior(), reset(), simple_forward(), simple_posterior(), simple_stochastic_forward(), trellis(), and update_transitions().
|
private |
Definition at line 359 of file trellis.h.
Referenced by naive_nth_viterbi(), reset(), simple_nth_viterbi(), traceback_nth(), trellis(), and ~trellis().
|
private |
Definition at line 355 of file trellis.h.
Referenced by fast_complex_viterbi(), naive_stochastic_viterbi(), naive_viterbi(), reset(), simple_simple_stochastic_viterbi(), simple_stochastic_viterbi(), simple_viterbi(), sparse_complex_viterbi(), traceback(), and trellis().
|
private |
Definition at line 356 of file trellis.h.
Referenced by fast_complex_viterbi(), naive_stochastic_viterbi(), naive_viterbi(), reset(), simple_simple_stochastic_viterbi(), simple_stochastic_viterbi(), simple_viterbi(), sparse_complex_viterbi(), traceback(), and trellis().
|
private |
Definition at line 329 of file trellis.h.
Referenced by backward(), fast_complex_viterbi(), forward(), naive_forward(), naive_nth_viterbi(), naive_stochastic_forward(), naive_stochastic_viterbi(), naive_viterbi(), posterior(), reset(), simple_backward(), simple_forward(), simple_nth_viterbi(), simple_posterior(), simple_simple_stochastic_viterbi(), simple_stochastic_forward(), simple_stochastic_viterbi(), simple_viterbi(), sparse_complex_viterbi(), stochastic_forward(), stochastic_viterbi(), trellis(), and viterbi().
|
private |
Definition at line 370 of file trellis.h.
Referenced by fast_complex_viterbi(), and sparse_complex_viterbi().
|
private |
Definition at line 371 of file trellis.h.
Referenced by fast_complex_viterbi(), get_explicit_duration_length(), and sparse_complex_viterbi().
|
private |
Definition at line 340 of file trellis.h.
Referenced by getForwardTable(), reset(), simple_forward(), trellis(), and ~trellis().
|
private |
Definition at line 318 of file trellis.h.
Referenced by backward(), fast_complex_viterbi(), forward(), get_explicit_duration_length(), get_model(), getModel(), naive_backward(), naive_baum_welch(), naive_forward(), naive_nth_viterbi(), naive_stochastic_forward(), naive_stochastic_viterbi(), naive_viterbi(), posterior(), reset(), simple_backward(), simple_forward(), simple_nth_viterbi(), simple_posterior(), simple_simple_stochastic_viterbi(), simple_stochastic_forward(), simple_stochastic_viterbi(), simple_viterbi(), sparse_complex_viterbi(), stochastic_forward(), stochastic_traceback(), stochastic_viterbi(), traceback(), traceback_stoch_posterior(), transitionFuncTraceback(), trellis(), update_transitions(), and viterbi().
|
private |
Definition at line 349 of file trellis.h.
Referenced by naive_nth_viterbi(), reset(), traceback_nth(), trellis(), and ~trellis().
|
private |
Definition at line 379 of file trellis.h.
Referenced by reset(), simple_nth_viterbi(), trellis(), and ~trellis().
|
private |
Definition at line 380 of file trellis.h.
Referenced by reset(), simple_nth_viterbi(), trellis(), and ~trellis().
|
private |
Definition at line 320 of file trellis.h.
Referenced by naive_nth_viterbi(), reset(), simple_nth_viterbi(), traceback_nth(), and trellis().
|
private |
Definition at line 381 of file trellis.h.
Referenced by simple_nth_viterbi().
|
private |
Definition at line 352 of file trellis.h.
Referenced by reset(), simple_nth_viterbi(), traceback_nth(), trellis(), and ~trellis().
|
private |
Definition at line 342 of file trellis.h.
Referenced by getPosteriorTable(), posterior(), reset(), simple_posterior(), traceback_posterior(), traceback_stoch_posterior(), trellis(), and ~trellis().
|
private |
Definition at line 365 of file trellis.h.
Referenced by fast_complex_viterbi(), reset(), simple_backward(), simple_forward(), simple_posterior(), simple_simple_stochastic_viterbi(), simple_stochastic_forward(), simple_stochastic_viterbi(), simple_viterbi(), sparse_complex_viterbi(), trellis(), and ~trellis().
|
private |
Definition at line 366 of file trellis.h.
Referenced by fast_complex_viterbi(), reset(), simple_backward(), simple_forward(), simple_posterior(), simple_simple_stochastic_viterbi(), simple_stochastic_forward(), simple_stochastic_viterbi(), simple_viterbi(), sparse_complex_viterbi(), trellis(), and ~trellis().
|
private |
Definition at line 324 of file trellis.h.
Referenced by backward(), fast_complex_viterbi(), forward(), naive_backward(), naive_baum_welch(), naive_forward(), naive_nth_viterbi(), naive_stochastic_forward(), naive_stochastic_viterbi(), naive_viterbi(), posterior(), reset(), simple_backward(), simple_forward(), simple_nth_viterbi(), simple_posterior(), simple_simple_stochastic_viterbi(), simple_stochastic_forward(), simple_stochastic_viterbi(), simple_viterbi(), sparse_complex_viterbi(), stochastic_forward(), stochastic_viterbi(), traceback(), traceback_nth(), traceback_posterior(), traceback_stoch_posterior(), trellis(), update_transitions(), and viterbi().
|
private |
Definition at line 319 of file trellis.h.
Referenced by backward(), fast_complex_viterbi(), forward(), getSeq(), getTransition(), naive_backward(), naive_baum_welch(), naive_forward(), naive_nth_viterbi(), naive_stochastic_forward(), naive_stochastic_viterbi(), naive_viterbi(), posterior(), reset(), simple_backward(), simple_forward(), simple_nth_viterbi(), simple_posterior(), simple_simple_stochastic_viterbi(), simple_stochastic_forward(), simple_stochastic_viterbi(), simple_viterbi(), sparse_complex_viterbi(), stochastic_forward(), stochastic_viterbi(), transitionFuncTraceback(), trellis(), and viterbi().
|
private |
Definition at line 323 of file trellis.h.
Referenced by backward(), fast_complex_viterbi(), forward(), naive_backward(), naive_baum_welch(), naive_forward(), naive_nth_viterbi(), naive_stochastic_forward(), naive_stochastic_viterbi(), naive_viterbi(), posterior(), reset(), simple_backward(), simple_forward(), simple_nth_viterbi(), simple_posterior(), simple_simple_stochastic_viterbi(), simple_stochastic_forward(), simple_stochastic_viterbi(), simple_viterbi(), sparse_complex_viterbi(), stochastic_forward(), stochastic_viterbi(), traceback_posterior(), traceback_stoch_posterior(), trellis(), update_transitions(), and viterbi().
|
private |
Definition at line 334 of file trellis.h.
Referenced by naive_stochastic_forward(), naive_stochastic_viterbi(), reset(), simple_stochastic_forward(), simple_stochastic_viterbi(), stochastic_traceback(), trellis(), and ~trellis().
|
private |
|
private |
Definition at line 374 of file trellis.h.
Referenced by fast_complex_viterbi(), simple_backward(), simple_forward(), simple_posterior(), simple_simple_stochastic_viterbi(), simple_stochastic_forward(), simple_stochastic_viterbi(), simple_viterbi(), and sparse_complex_viterbi().
|
private |
Definition at line 372 of file trellis.h.
Referenced by fast_complex_viterbi(), and sparse_complex_viterbi().
|
private |
Definition at line 332 of file trellis.h.
Referenced by fast_complex_viterbi(), getTransition(), naive_stochastic_viterbi(), naive_viterbi(), reset(), simple_simple_stochastic_viterbi(), simple_stochastic_viterbi(), simple_viterbi(), sparse_complex_viterbi(), traceback(), trellis(), and ~trellis().
|
private |
|
private |
Definition at line 339 of file trellis.h.
Referenced by reset(), trellis(), and ~trellis().