StochHMM
v0.34
Flexible Hidden Markov Model C++ Library and Application
|
#include <externDefinitions.h>
Public Member Functions | |
weightDef (size_t) | |
Create a weightDef type. | |
~weightDef () | |
double | getWeight (size_t stateIter) |
void | assignWeight (size_t, double) |
std::string | stringify () |
Get the string representation of the weightDef. | |
Public Member Functions inherited from StochHMM::ExDef | |
ExDef () | |
virtual | ~ExDef () |
size_t | getState () |
bool | isAbsolute () |
void | setState (size_t stIter) |
Private Attributes | |
sparseArray< double > | weights |
Friends | |
class | ExDefSequence |
Additional Inherited Members | |
Protected Attributes inherited from StochHMM::ExDef | |
bool | absolute |
size_t | weightedState |
weightDef defines weighted external definitions. Model weights the states at the position with a value
Definition at line 132 of file externDefinitions.h.
StochHMM::weightDef::weightDef | ( | size_t | state_size | ) |
Create a weightDef type.
Definition at line 130 of file externDefinitions.cpp.
References StochHMM::ExDef::absolute, SIZE_MAX, and StochHMM::ExDef::weightedState.
|
inline |
Definition at line 136 of file externDefinitions.h.
|
virtual |
Assign a weight to a particular state
stateIter | integer Iterator to the state |
logValue | Log value of weight to apply |
Reimplemented from StochHMM::ExDef.
Definition at line 140 of file externDefinitions.cpp.
|
inlinevirtual |
Reimplemented from StochHMM::ExDef.
Definition at line 140 of file externDefinitions.h.
|
virtual |
Get the string representation of the weightDef.
Reimplemented from StochHMM::ExDef.
Definition at line 164 of file externDefinitions.cpp.
References StochHMM::double_to_string(), and StochHMM::int_to_string().
|
friend |
Reimplemented from StochHMM::ExDef.
Definition at line 136 of file externDefinitions.h.
|
private |
Definition at line 150 of file externDefinitions.h.