mlpack 3.4.2
hmm_util.hpp
Go to the documentation of this file.
1
12#ifndef MLPACK_METHODS_HMM_HMM_UTIL_HPP
13#define MLPACK_METHODS_HMM_HMM_UTIL_HPP
14
15#include <mlpack/prereqs.hpp>
16
17namespace mlpack {
18namespace hmm {
19
22enum HMMType : char
23{
24 DiscreteHMM = 0,
28};
29
31template<typename ActionType, typename ExtraInfoType = void>
32void LoadHMMAndPerformAction(const std::string& modelFile,
33 ExtraInfoType* x = NULL);
34
37template<typename HMMType>
38void SaveHMM(HMMType& hmm, const std::string& modelFile);
39
40} // namespace hmm
41} // namespace mlpack
42
43#include "hmm_util_impl.hpp"
44
45#endif
void LoadHMMAndPerformAction(const std::string &modelFile, ExtraInfoType *x=NULL)
ActionType should implement static void Apply(HMMType&).
void SaveHMM(HMMType &hmm, const std::string &modelFile)
Save an HMM to a file.
@ DiagonalGaussianMixtureModelHMM
Definition: hmm_model.hpp:27
@ GaussianMixtureModelHMM
Definition: hmm_model.hpp:26
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
The core includes that mlpack expects; standard C++ includes and Armadillo.