---
name: "mlpack_hmm"
section: "3"
platform: "linux"
package: "mlpack-doc"
version: "1.0.10-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/mlpack_hmm"
---

# mlpack\_hmm(3)

Hidden Markov Models.

## NAME

mlpack::hmm -

Hidden Markov Models.

## SYNOPSIS

### Classes

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

### Functions

template\<typename Distribution \> void **LoadHMM** (**HMM**\< Distribution \> &hmm, **util::SaveRestoreUtility** &sr)\
 *Load an* **HMM** *from file.*  template\<typename Distribution \> void **SaveHMM** (const **HMM**\< Distribution \> &hmm, **util::SaveRestoreUtility** &sr)\
 *Save an* **HMM** *to file.*

## Detailed Description

Hidden Markov Models.

## Function Documentation

### template\<typename Distribution \> void mlpack::hmm::LoadHMM (HMM\< Distribution \> &hmm, util::SaveRestoreUtility &sr)

Load an **HMM** from file. This only works for GMMs, DiscreteDistributions, and GaussianDistributions.

**Template Parameters:**

*Distribution* Distribution type of **HMM**.

**Parameters:**

*sr* SaveRestoreUtility to use.

### template\<typename Distribution \> void mlpack::hmm::SaveHMM (const HMM\< Distribution \> &hmm, util::SaveRestoreUtility &sr)

Save an **HMM** to file. This only works for GMMs, DiscreteDistributions, and GaussianDistributions.

**Template Parameters:**

*Distribution* Distribution type of **HMM**.

**Parameters:**

*sr* SaveRestoreUtility to use.

## Author

Generated automatically by Doxygen for MLPACK from the source code.
