StochHMM
v0.34
Flexible Hidden Markov Model C++ Library and Application
|
(**Adding in log space) More...
#include <userFunctions.h>
Public Member Functions | |
StateFuncs () | |
void | assignTransitionFunction (std::string &, transitionFunc) |
void | assignTransitionFunction (const char *, transitionFunc) |
void | assignEmissionFunction (std::string &, emissionFunc) |
void | assignEmissionFunction (const char *, emissionFunc) |
void | assignPDFFunction (std::string &, pdfFunc) |
void | assignPDFFunction (const char *, pdfFunc) |
void | assignMultivariatePdfFunction (std::string &, multiPdfFunc) |
void | assignMultivariatePdfFunction (const char *, multiPdfFunc) |
transitionFunc * | getTransitionFunction (std::string &) |
emissionFunc * | getEmissionFunction (std::string &) |
pdfFunc * | getPDFFunction (std::string &) |
multiPdfFunc * | getMultivariatePdfFunction (std::string &) |
Private Member Functions | |
void | _loadUnivariatePdf () |
void | _loadMultivariatePdf () |
Private Attributes | |
std::map< std::string, transitionFunc > | transitionFunctions |
std::map< std::string, emissionFunc > | emissionFunctions |
std::map< std::string, pdfFunc > | pdfFunctions |
std::map< std::string, multiPdfFunc > | multiPdfFunctions |
(**Adding in log space)
The map stores the pointers to the different functions by const char* word. Allows the user to create and integrate their own functions into the model By specifying the name in the model, and assigning the ptr in the externalFuncs class. At any State or transition their function will be called and return float The float will then be applied in the trellis added to transition or emission. Stores pointers to user functions used by the State's Emissions and Transitions
Definition at line 75 of file userFunctions.h.
StochHMM::StateFuncs::StateFuncs | ( | ) |
Definition at line 32 of file userFunctions.cpp.
References _loadMultivariatePdf(), and _loadUnivariatePdf().
|
private |
Definition at line 275 of file userFunctions.cpp.
References assignMultivariatePdfFunction(), StochHMM::dirichlet_multi_pdf(), and StochHMM::ewens_multi_pdf().
Referenced by StateFuncs().
|
private |
Definition at line 199 of file userFunctions.cpp.
References StochHMM::arcsine_pdf(), assignPDFFunction(), StochHMM::beta_binomial_pdf(), StochHMM::beta_negative_binomial_pdf(), StochHMM::beta_pdf(), StochHMM::beta_prime_pdf(), StochHMM::binomial_pdf(), StochHMM::cauchy_pdf(), StochHMM::chi_pdf(), StochHMM::chi_squared_pdf(), StochHMM::continuous_uniform_pdf(), StochHMM::dagum_pdf(), StochHMM::degenerate_pdf(), StochHMM::discrete_uniform_pdf(), StochHMM::exponential_pdf(), StochHMM::f_pdf(), StochHMM::fishers_z_pdf(), StochHMM::folded_normal_pdf(), StochHMM::frechet_pdf(), StochHMM::gamma_pdf(), StochHMM::generalized_extreme_value_pdf(), StochHMM::generalized_normal_pdf(), StochHMM::generalized_pareto_pdf(), StochHMM::geometric_pdf(), StochHMM::gumbel_pdf(), StochHMM::gumbel_type_one_pdf(), StochHMM::gumbel_type_two_pdf(), StochHMM::half_normal_pdf(), StochHMM::hyperbolic_secant_pdf(), StochHMM::hypergeometric_pdf(), StochHMM::inv_gamma_pdf(), StochHMM::inv_gaussian_pdf(), StochHMM::inverse_chi_squared_pdf(), StochHMM::kumaraswamy_pdf(), StochHMM::laplace_pdf(), StochHMM::levy_pdf(), StochHMM::log_cauchy_pdf(), StochHMM::log_laplace_pdf(), StochHMM::log_logistic_pdf(), StochHMM::log_normal_pdf(), StochHMM::logarithmic_pdf(), StochHMM::logistic_pdf(), StochHMM::logit_normal_pdf(), StochHMM::maxwell_boltzman_pdf(), StochHMM::nakagami_pdf(), StochHMM::negative_binomial_pdf(), StochHMM::normal_pdf(), StochHMM::pareto_pdf(), StochHMM::poisson_pdf(), StochHMM::raised_cosine_pdf(), StochHMM::rayleigh_pdf(), StochHMM::scaled_inverse_chi_squared_pdf(), StochHMM::standard_normal_pdf(), StochHMM::students_t_pdf(), StochHMM::triangular_pdf(), StochHMM::truncated_normal_pdf(), StochHMM::u_quadratic_pdf(), StochHMM::weibull_distribution(), StochHMM::wigner_semicircle_pdf(), StochHMM::yule_simon_pdf(), StochHMM::zipf_mandelbrot_pdf(), and StochHMM::zipf_pdf().
Referenced by StateFuncs().
void StochHMM::StateFuncs::assignEmissionFunction | ( | std::string & | str, |
emissionFunc | ptrFunc | ||
) |
Assign a emission function to the StateFuncs class
str | Name of function |
ptrFunc | pt2StateFunc to use for StateFunc |
Definition at line 67 of file userFunctions.cpp.
References emissionFunctions.
Referenced by assignEmissionFunction().
void StochHMM::StateFuncs::assignEmissionFunction | ( | const char * | str, |
emissionFunc | ptrFunc | ||
) |
Definition at line 83 of file userFunctions.cpp.
References assignEmissionFunction().
void StochHMM::StateFuncs::assignMultivariatePdfFunction | ( | std::string & | str, |
multiPdfFunc | ptrFunc | ||
) |
Assign a Multivariate Probability Distribution Function to the StateFuncs class
str | Name of function |
ptrFunc | Pointer to pdfFunc to use for continuous emission |
Definition at line 116 of file userFunctions.cpp.
References multiPdfFunctions.
Referenced by _loadMultivariatePdf(), and assignMultivariatePdfFunction().
void StochHMM::StateFuncs::assignMultivariatePdfFunction | ( | const char * | str, |
multiPdfFunc | ptrFunc | ||
) |
Definition at line 131 of file userFunctions.cpp.
References assignMultivariatePdfFunction().
void StochHMM::StateFuncs::assignPDFFunction | ( | std::string & | str, |
pdfFunc | ptrFunc | ||
) |
Assign a Univariate Probability Distribution Function to the StateFuncs class
str | Name of function |
ptrFunc | Pointer to pdfFunc to use for continuous emission |
Definition at line 93 of file userFunctions.cpp.
References pdfFunctions.
Referenced by _loadUnivariatePdf(), and assignPDFFunction().
void StochHMM::StateFuncs::assignPDFFunction | ( | const char * | str, |
pdfFunc | ptrFunc | ||
) |
Definition at line 108 of file userFunctions.cpp.
References assignPDFFunction().
void StochHMM::StateFuncs::assignTransitionFunction | ( | std::string & | str, |
transitionFunc | ptrFunc | ||
) |
Assign a transition function to the StateFuncs class
str | Name of function |
ptrFunc | pt2StateFunc to use for StateFunc |
Definition at line 40 of file userFunctions.cpp.
References transitionFunctions.
Referenced by assignTransitionFunction().
void StochHMM::StateFuncs::assignTransitionFunction | ( | const char * | str, |
transitionFunc | ptrFunc | ||
) |
Definition at line 57 of file userFunctions.cpp.
References assignTransitionFunction().
emissionFunc * StochHMM::StateFuncs::getEmissionFunction | ( | std::string & | name | ) |
Get pointer to function with given name
name | Name of the function |
Definition at line 156 of file userFunctions.cpp.
References emissionFunctions.
Referenced by StochHMM::emissionFuncParam::emissionFuncParam(), and StochHMM::emissionFuncParam::parse().
multiPdfFunc * StochHMM::StateFuncs::getMultivariatePdfFunction | ( | std::string & | name | ) |
Get pointer to multivariate probability distribution function with given name
name | Name of the function |
Definition at line 186 of file userFunctions.cpp.
References multiPdfFunctions.
Referenced by StochHMM::emm::parse().
pdfFunc * StochHMM::StateFuncs::getPDFFunction | ( | std::string & | name | ) |
Get pointer to Univariate probability distribution function with given name
name | Name of the function |
Definition at line 171 of file userFunctions.cpp.
References pdfFunctions.
Referenced by StochHMM::emm::parse().
transitionFunc * StochHMM::StateFuncs::getTransitionFunction | ( | std::string & | name | ) |
Get pointer to function with given name
name | Name of the function |
Definition at line 141 of file userFunctions.cpp.
References transitionFunctions.
Referenced by StochHMM::transitionFuncParam::parse().
|
private |
Definition at line 100 of file userFunctions.h.
Referenced by assignEmissionFunction(), and getEmissionFunction().
|
private |
Definition at line 102 of file userFunctions.h.
Referenced by assignMultivariatePdfFunction(), and getMultivariatePdfFunction().
|
private |
Definition at line 101 of file userFunctions.h.
Referenced by assignPDFFunction(), and getPDFFunction().
|
private |
Definition at line 99 of file userFunctions.h.
Referenced by assignTransitionFunction(), and getTransitionFunction().