StochHMM
v0.34
Flexible Hidden Markov Model C++ Library and Application
|
#include <externalFuncs.h>
Public Member Functions | |
emissionFuncParam (std::string &, StateFuncs *, track *) | |
emissionFuncParam () | |
bool | parse (stringList &, tracks &, weights *, StateFuncs *) |
Parse the stringList from model import. | |
void | setEmissionFunc (std::string &, emissionFunc *, weight *) |
std::string & | getTrackName () |
std::string & | getName () |
track * | getTrack () |
double | evaluate (const std::string *, size_t) |
double | evaluate (sequences &, size_t) |
double | evaluate (sequence &, size_t) |
void | print () |
Print the externalFuncts to stdout. | |
std::string | stringify () |
prints the string representation of the externFuncs to stdout |
Private Attributes | |
emissionFunc * | emissionFunction |
Return string representation of the externFuncs definition in the model. | |
std::string | trackName |
size_t | trackNumber |
What track to pass to the function. | |
track * | emissionFuncTrack |
std::string | emissionFuncName |
Pointer to track function uses. | |
weight * | emissionFuncScaling |
< Name of the external function as used in the model |
Definition at line 135 of file externalFuncs.h.
StochHMM::emissionFuncParam::emissionFuncParam | ( | std::string & | functionName, |
StateFuncs * | funcs, | ||
track * | trk | ||
) |
Definition at line 231 of file externalFuncs.cpp.
References emissionFuncName, emissionFunction, emissionFuncTrack, StochHMM::StateFuncs::getEmissionFunction(), StochHMM::track::getIndex(), StochHMM::track::getName(), trackName, and trackNumber.
StochHMM::emissionFuncParam::emissionFuncParam | ( | ) |
Create emissionFuncParam from a stringList parsed from model for given track and applying a weight as defined in the model
lst | stringList from parsing the line in the function |
trcks | tracks defined in the model |
wts | pointer to weights as defined in the model |
funcs | pointer to the state functions defined by user and referenced in the model |
Definition at line 250 of file externalFuncs.cpp.
References emissionFunction.
double StochHMM::emissionFuncParam::evaluate | ( | const std::string * | fullSequence, |
size_t | pos | ||
) |
Definition at line 353 of file externalFuncs.cpp.
References emissionFuncScaling, and StochHMM::weight::getWeightedScore().
Referenced by StochHMM::emm::get_emission(), and StochHMM::transition::getTransition().
double StochHMM::emissionFuncParam::evaluate | ( | sequences & | seqs, |
size_t | pos | ||
) |
Definition at line 363 of file externalFuncs.cpp.
References emissionFuncScaling, StochHMM::sequences::getUndigitized(), StochHMM::weight::getWeightedScore(), and trackNumber.
double StochHMM::emissionFuncParam::evaluate | ( | sequence & | seq, |
size_t | pos | ||
) |
Definition at line 373 of file externalFuncs.cpp.
References emissionFuncScaling, StochHMM::sequence::getUndigitized(), and StochHMM::weight::getWeightedScore().
|
inline |
Definition at line 155 of file externalFuncs.h.
References emissionFuncName.
Referenced by StochHMM::transition::getLexicalFunctionName(), and StochHMM::emm::stringify().
|
inline |
Definition at line 157 of file externalFuncs.h.
References emissionFuncTrack.
Referenced by StochHMM::emm::stringify().
|
inline |
Get track name to pass to the function (as defined in the model)
Definition at line 153 of file externalFuncs.h.
References trackName.
Referenced by StochHMM::emm::_processTags(), and StochHMM::transition::stringify().
bool StochHMM::emissionFuncParam::parse | ( | stringList & | lst, |
tracks & | trcks, | ||
weights * | wts, | ||
StateFuncs * | funcs | ||
) |
Parse the stringList from model import.
Definition at line 257 of file externalFuncs.cpp.
References StochHMM::stringList::contains(), StochHMM::weights::count(), emissionFuncName, emissionFuncScaling, emissionFunction, emissionFuncTrack, StochHMM::StateFuncs::getEmissionFunction(), StochHMM::track::getIndex(), StochHMM::tracks::getTrack(), StochHMM::stringList::indexOf(), StochHMM::isNumeric(), StochHMM::weight::setAbsolute(), StochHMM::stringToDouble(), trackName, and trackNumber.
Referenced by StochHMM::emm::_processTags().
void StochHMM::emissionFuncParam::print | ( | ) |
Print the externalFuncts to stdout.
Definition at line 327 of file externalFuncs.cpp.
References stringify().
void StochHMM::emissionFuncParam::setEmissionFunc | ( | std::string & | , |
emissionFunc * | , | ||
weight * | |||
) |
std::string StochHMM::emissionFuncParam::stringify | ( | ) |
prints the string representation of the externFuncs to stdout
Get string representation of the externalFuncs
Definition at line 333 of file externalFuncs.cpp.
References StochHMM::double_to_string(), emissionFuncName, emissionFuncScaling, StochHMM::weight::getAbsolute(), StochHMM::weight::getName(), StochHMM::weight::isAbsolute(), and trackName.
Referenced by print(), and StochHMM::emm::stringify().
|
private |
Pointer to track function uses.
Definition at line 172 of file externalFuncs.h.
Referenced by emissionFuncParam(), getName(), parse(), and stringify().
|
private |
< Name of the external function as used in the model
Definition at line 174 of file externalFuncs.h.
Referenced by evaluate(), parse(), and stringify().
|
private |
Return string representation of the externFuncs definition in the model.
Definition at line 167 of file externalFuncs.h.
Referenced by emissionFuncParam(), and parse().
|
private |
Definition at line 170 of file externalFuncs.h.
Referenced by emissionFuncParam(), getTrack(), and parse().
|
private |
Definition at line 168 of file externalFuncs.h.
Referenced by emissionFuncParam(), getTrackName(), parse(), and stringify().
|
private |
What track to pass to the function.
Definition at line 169 of file externalFuncs.h.
Referenced by emissionFuncParam(), evaluate(), and parse().