mlpack::hmm Namespace Reference

Hidden Markov Models. More...

Classes

class  HMM
 A class that represents a Hidden Markov Model with an arbitrary type of emission distribution. More...

 
class  HMMModel
 A serializable HMM model that also stores the type. More...

 
class  HMMRegression
 A class that represents a Hidden Markov Model Regression (HMMR). More...

 

Enumerations

enum  HMMType
: char {
  DiscreteHMM
= 0,
  GaussianHMM
,
  GaussianMixtureModelHMM
,
  DiagonalGaussianMixtureModelHMM
,
  DiscreteHMM
= 0,
  GaussianHMM
,
  GaussianMixtureModelHMM
,
  DiagonalGaussianMixtureModelHMM

}
 HMMType, to be stored on disk. More...

 
enum  HMMType
: char {
  DiscreteHMM
= 0,
  GaussianHMM
,
  GaussianMixtureModelHMM
,
  DiagonalGaussianMixtureModelHMM
,
  DiscreteHMM
= 0,
  GaussianHMM
,
  GaussianMixtureModelHMM
,
  DiagonalGaussianMixtureModelHMM

}
 

Functions

template
<
typename
ActionType
,
typename
ExtraInfoType
=
void
>
void LoadHMMAndPerformAction (const std::string &modelFile, ExtraInfoType *x=NULL)
 ActionType should implement static void Apply(HMMType&). More...

 
template
<
typename
HMMType
>
void SaveHMM (HMMType &hmm, const std::string &modelFile)
 Save an HMM to a file. More...

 

Detailed Description

Hidden Markov Models.

Enumeration Type Documentation

◆ HMMType [1/2]

enum HMMType : char

HMMType, to be stored on disk.

This is of type char, which is one byte. (I'm not sure what will happen on systems where one byte is not eight bits.)

Enumerator
DiscreteHMM 
GaussianHMM 
GaussianMixtureModelHMM 
DiagonalGaussianMixtureModelHMM 
DiscreteHMM 
GaussianHMM 
GaussianMixtureModelHMM 
DiagonalGaussianMixtureModelHMM 

Definition at line 22 of file hmm_util.hpp.

◆ HMMType [2/2]

enum HMMType : char
Enumerator
DiscreteHMM 
GaussianHMM 
GaussianMixtureModelHMM 
DiagonalGaussianMixtureModelHMM 
DiscreteHMM 
GaussianHMM 
GaussianMixtureModelHMM 
DiagonalGaussianMixtureModelHMM 

Definition at line 23 of file hmm_model.hpp.

Function Documentation

◆ LoadHMMAndPerformAction()

void mlpack::hmm::LoadHMMAndPerformAction ( const std::string &  modelFile,
ExtraInfoType *  x = NULL 
)

ActionType should implement static void Apply(HMMType&).

◆ SaveHMM()

void mlpack::hmm::SaveHMM ( HMMType hmm,
const std::string &  modelFile 
)

Save an HMM to a file.

The file must also encode what type of HMM is being stored.