StochHMM  v0.34
Flexible Hidden Markov Model C++ Library and Application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | Friends
StochHMM::ExDef Class Reference

#include <externDefinitions.h>

Inheritance diagram for StochHMM::ExDef:
StochHMM::weightDef

List of all members.

Public Member Functions

 ExDef ()
virtual ~ExDef ()
size_t getState ()
bool isAbsolute ()
void setState (size_t stIter)
virtual void assignWeight (size_t stateIter, double val)
virtual double getWeight (size_t stateIter)
virtual std::string stringify ()
 Get the string representation of the ExDef.

Protected Attributes

bool absolute
size_t weightedState

Friends

class ExDefSequence

Detailed Description

ExDef defines absolute external definition for model. The model must pass through this state

Definition at line 105 of file externDefinitions.h.


Constructor & Destructor Documentation

StochHMM::ExDef::ExDef ( )

Create a ExDef type *Default: absolute=false, weightedState = -2

Definition at line 123 of file externDefinitions.cpp.

References absolute, and weightedState.

{
absolute=false;
//st=NULL;
}
virtual StochHMM::ExDef::~ExDef ( )
inlinevirtual

Definition at line 111 of file externDefinitions.h.

{};

Member Function Documentation

virtual void StochHMM::ExDef::assignWeight ( size_t  stateIter,
double  val 
)
inlinevirtual

Reimplemented in StochHMM::weightDef.

Definition at line 119 of file externDefinitions.h.

References absolute, and weightedState.

{weightedState=stateIter;absolute=true;};
size_t StochHMM::ExDef::getState ( )
inline

Definition at line 115 of file externDefinitions.h.

References weightedState.

{return weightedState;};
virtual double StochHMM::ExDef::getWeight ( size_t  stateIter)
inlinevirtual

Reimplemented in StochHMM::weightDef.

Definition at line 120 of file externDefinitions.h.

References weightedState.

{if ( stateIter == weightedState){ return 0;} else { return -INFINITY;}};
bool StochHMM::ExDef::isAbsolute ( )
inline

Definition at line 116 of file externDefinitions.h.

References absolute.

{return absolute;};
void StochHMM::ExDef::setState ( size_t  stIter)
inline

Definition at line 118 of file externDefinitions.h.

References absolute, and weightedState.

{absolute=true; weightedState=stIter;};
std::string StochHMM::ExDef::stringify ( )
virtual

Get the string representation of the ExDef.

Reimplemented in StochHMM::weightDef.

Definition at line 154 of file externDefinitions.cpp.

References StochHMM::int_to_string(), and weightedState.

{
std::string output;
output+="STATE: ";
output+= int_to_string(weightedState) + "\n";
return output;
}

Friends And Related Function Documentation

friend class ExDefSequence
friend

Reimplemented in StochHMM::weightDef.

Definition at line 111 of file externDefinitions.h.


Member Data Documentation

bool StochHMM::ExDef::absolute
protected
size_t StochHMM::ExDef::weightedState
protected

The documentation for this class was generated from the following files: