mlpack  master
Public Member Functions | Private Attributes | List of all members
mlpack::hmm::HMMModel Class Reference

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...
 
HMMModeloperator= (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...
 

Detailed Description

A serializable HMM model that also stores the type.

Definition at line 26 of file hmm_model.hpp.

Constructor & Destructor Documentation

mlpack::hmm::HMMModel::HMMModel ( )
inline

Construct an uninitialized model.

Definition at line 40 of file hmm_model.hpp.

mlpack::hmm::HMMModel::HMMModel ( const HMMType  type)
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.

mlpack::hmm::HMMModel::HMMModel ( const HMMModel other)
inline
mlpack::hmm::HMMModel::HMMModel ( HMMModel &&  other)
inline

Take ownership of another model.

Definition at line 82 of file hmm_model.hpp.

References mlpack::hmm::DiscreteHMM.

mlpack::hmm::HMMModel::~HMMModel ( )
inline

Clean memory.

Definition at line 119 of file hmm_model.hpp.

References discreteHMM, gaussianHMM, and gmmHMM.

Member Function Documentation

HMMModel& mlpack::hmm::HMMModel::operator= ( const HMMModel other)
inline
template<typename ActionType , typename ExtraInfoType >
void mlpack::hmm::HMMModel::PerformAction ( ExtraInfoType *  x)
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.

template<typename Archive >
void mlpack::hmm::HMMModel::Serialize ( Archive &  ar,
const unsigned  int 
)
inline

Member Data Documentation

HMM<distribution::DiscreteDistribution>* mlpack::hmm::HMMModel::discreteHMM
private

Not used if type is not DiscreteHMM.

Definition at line 32 of file hmm_model.hpp.

Referenced by HMMModel(), operator=(), Serialize(), and ~HMMModel().

HMM<distribution::GaussianDistribution>* mlpack::hmm::HMMModel::gaussianHMM
private

Not used if type is not GaussianHMM.

Definition at line 34 of file hmm_model.hpp.

Referenced by HMMModel(), operator=(), Serialize(), and ~HMMModel().

HMM<gmm::GMM>* mlpack::hmm::HMMModel::gmmHMM
private

Not used if type is not GaussianMixtureModelHMM.

Definition at line 36 of file hmm_model.hpp.

Referenced by HMMModel(), operator=(), Serialize(), and ~HMMModel().

HMMType mlpack::hmm::HMMModel::type
private

The type of the HMM.

Definition at line 30 of file hmm_model.hpp.

Referenced by operator=().


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