mlpack  2.0.1
hmm_util.hpp
Go to the documentation of this file.
1 
14 #ifndef __MLPACK_METHODS_HMM_HMM_UTIL_HPP
15 #define __MLPACK_METHODS_HMM_HMM_UTIL_HPP
16 
17 #include <mlpack/core.hpp>
18 
19 namespace mlpack {
20 namespace hmm {
21 
24 enum HMMType : char
25 {
29 };
30 
32 template<typename ActionType, typename ExtraInfoType = void>
33 void LoadHMMAndPerformAction(const std::string& modelFile,
34  ExtraInfoType* x = NULL);
35 
38 template<typename HMMType>
39 void SaveHMM(HMMType& hmm, const std::string& modelFile);
40 
41 } // namespace hmm
42 } // namespace mlpack
43 
44 #include "hmm_util_impl.hpp"
45 
46 #endif
Linear algebra utility functions, generally performed on matrices or vectors.
void LoadHMMAndPerformAction(const std::string &modelFile, ExtraInfoType *x=NULL)
ActionType should implement static void Apply(HMMType&).
HMMType
HMMType, to be stored on disk.
Definition: hmm_util.hpp:24
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
void SaveHMM(HMMType &hmm, const std::string &modelFile)
Save an HMM to a file.