mlpack  2.2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
17 namespace mlpack {
18 namespace hmm {
19 
22 enum HMMType : char
23 {
27 };
28 
30 template<typename ActionType, typename ExtraInfoType = void>
31 void LoadHMMAndPerformAction(const std::string& modelFile,
32  ExtraInfoType* x = NULL);
33 
36 template<typename HMMType>
37 void SaveHMM(HMMType& hmm, const std::string& modelFile);
38 
39 } // namespace hmm
40 } // namespace mlpack
41 
42 #include "hmm_util_impl.hpp"
43 
44 #endif
The core includes that mlpack expects; standard C++ includes and Armadillo.
void LoadHMMAndPerformAction(const std::string &modelFile, ExtraInfoType *x=NULL)
ActionType should implement static void Apply(HMMType&amp;).
HMMType
HMMType, to be stored on disk.
Definition: hmm_util.hpp:22
void SaveHMM(HMMType &hmm, const std::string &modelFile)
Save an HMM to a file.