[mlpack-svn] r10301 - mlpack/trunk/src/mlpack/methods/hmm

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Nov 16 15:16:30 EST 2011


Author: rcurtin
Date: 2011-11-16 15:16:30 -0500 (Wed, 16 Nov 2011)
New Revision: 10301

Modified:
   mlpack/trunk/src/mlpack/methods/hmm/hmm.hpp
Log:
Use a default template parameter for HMMs.


Modified: mlpack/trunk/src/mlpack/methods/hmm/hmm.hpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/hmm/hmm.hpp	2011-11-16 20:13:10 UTC (rev 10300)
+++ mlpack/trunk/src/mlpack/methods/hmm/hmm.hpp	2011-11-16 20:16:30 UTC (rev 10301)
@@ -9,6 +9,7 @@
 #define __MLPACK_METHODS_HMM_HMM_HPP
 
 #include <mlpack/core.h>
+#include "distributions/discrete_distribution.hpp"
 
 namespace mlpack {
 namespace hmm {
@@ -48,7 +49,7 @@
  * non-negative integers.  Other distributions could be Gaussians, a mixture of
  * Gaussians (GMM), or any other probability distribution.
  */
-template<typename Distribution>
+template<typename Distribution = distribution::DiscreteDistribution>
 class HMM
 {
  private:




More information about the mlpack-svn mailing list