mlpack
master
|
A serializable HMM model that also stores the type. More...
Public Member Functions | |
HMMModel () | |
Construct an uninitialized model. More... | |
HMMModel (const HMMType type) | |
Construct a model of the given type. More... | |
HMMModel (const HMMModel &other) | |
Copy another model. More... | |
HMMModel (HMMModel &&other) | |
Take ownership of another model. More... | |
~HMMModel () | |
Clean memory. More... | |
HMMModel & | operator= (const HMMModel &other) |
Copy assignment operator. More... | |
template<typename ActionType , typename ExtraInfoType > | |
void | PerformAction (ExtraInfoType *x) |
Given a functor type, perform that functor with the optional extra info on the HMM. More... | |
template<typename Archive > | |
void | Serialize (Archive &ar, const unsigned int) |
Serialize the model. More... | |
Private Attributes | |
HMM< distribution::DiscreteDistribution > * | discreteHMM |
Not used if type is not DiscreteHMM. More... | |
HMM< distribution::GaussianDistribution > * | gaussianHMM |
Not used if type is not GaussianHMM. More... | |
HMM< gmm::GMM > * | gmmHMM |
Not used if type is not GaussianMixtureModelHMM. More... | |
HMMType | type |
The type of the HMM. More... | |
A serializable HMM model that also stores the type.
Definition at line 26 of file hmm_model.hpp.
|
inline |
Construct an uninitialized model.
Definition at line 40 of file hmm_model.hpp.
|
inline |
Construct a model of the given type.
Definition at line 50 of file hmm_model.hpp.
References mlpack::hmm::DiscreteHMM, mlpack::hmm::GaussianHMM, and mlpack::hmm::GaussianMixtureModelHMM.
|
inline |
Copy another model.
Definition at line 65 of file hmm_model.hpp.
References mlpack::hmm::DiscreteHMM, discreteHMM, mlpack::hmm::GaussianHMM, gaussianHMM, mlpack::hmm::GaussianMixtureModelHMM, and gmmHMM.
|
inline |
Take ownership of another model.
Definition at line 82 of file hmm_model.hpp.
References mlpack::hmm::DiscreteHMM.
|
inline |
Clean memory.
Definition at line 119 of file hmm_model.hpp.
References discreteHMM, gaussianHMM, and gmmHMM.
Copy assignment operator.
Definition at line 95 of file hmm_model.hpp.
References mlpack::hmm::DiscreteHMM, discreteHMM, mlpack::hmm::GaussianHMM, gaussianHMM, mlpack::hmm::GaussianMixtureModelHMM, gmmHMM, and type.
|
inline |
Given a functor type, perform that functor with the optional extra info on the HMM.
Definition at line 132 of file hmm_model.hpp.
References mlpack::hmm::DiscreteHMM, mlpack::hmm::GaussianHMM, and mlpack::hmm::GaussianMixtureModelHMM.
|
inline |
Serialize the model.
Definition at line 144 of file hmm_model.hpp.
References mlpack::data::CreateNVP(), mlpack::hmm::DiscreteHMM, discreteHMM, mlpack::hmm::GaussianHMM, gaussianHMM, mlpack::hmm::GaussianMixtureModelHMM, and gmmHMM.
|
private |
Not used if type is not DiscreteHMM.
Definition at line 32 of file hmm_model.hpp.
Referenced by HMMModel(), operator=(), Serialize(), and ~HMMModel().
|
private |
Not used if type is not GaussianHMM.
Definition at line 34 of file hmm_model.hpp.
Referenced by HMMModel(), operator=(), Serialize(), and ~HMMModel().
Not used if type is not GaussianMixtureModelHMM.
Definition at line 36 of file hmm_model.hpp.
Referenced by HMMModel(), operator=(), Serialize(), and ~HMMModel().
|
private |