COOPY » Guide  version 0.6.5
Public Member Functions | Data Fields
coopy::cmp::Viterbi Class Reference

#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

Detailed Description

Definition at line 14 of file Viterbi.h.


Constructor & Destructor Documentation

coopy::cmp::Viterbi::Viterbi ( ) [inline]

Definition at line 26 of file Viterbi.h.

References K, reset(), and T.


Member Function Documentation

void Viterbi::addTransition ( int  s0,
int  s1,
float  c 
)
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.

Referenced by getCost(), getPath(), and length().

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]

Definition at line 72 of file Viterbi.h.

References getPath().

void coopy::cmp::Viterbi::reset ( ) [inline]

Definition at line 33 of file Viterbi.h.

References best_cost, index, mode, and path_valid.

Referenced by Viterbi().

void Viterbi::setSize ( int  states,
int  sequence_length 
)
void Viterbi::showPath ( )

Definition at line 146 of file Viterbi.cpp.

Referenced by main().


Field Documentation

Definition at line 21 of file Viterbi.h.

Referenced by getCost(), and reset().

Definition at line 22 of file Viterbi.h.

Definition at line 18 of file Viterbi.h.

Referenced by getPath(), length(), and reset().

Definition at line 16 of file Viterbi.h.

Referenced by Viterbi().

Definition at line 19 of file Viterbi.h.

Referenced by reset().

Definition at line 24 of file Viterbi.h.

Referenced by getPath().

Definition at line 20 of file Viterbi.h.

Referenced by beginTransitions(), endTransitions(), and reset().

Definition at line 23 of file Viterbi.h.

Definition at line 17 of file Viterbi.h.

Referenced by Viterbi().


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines