[mlpack-svn] r15905 - mlpack/trunk/src/mlpack/methods/gmm

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Oct 2 20:11:19 EDT 2013


Author: rcurtin
Date: Wed Oct  2 20:11:18 2013
New Revision: 15905

Log:
Rename PositiveDefiniteCovariance to PositiveDefiniteConstraint, because I think
that's a better name and nobody's going to stop me (...I think?).


Added:
   mlpack/trunk/src/mlpack/methods/gmm/positive_definite_constraint.hpp
      - copied, changed from r15902, /mlpack/trunk/src/mlpack/methods/gmm/positive_definite_covariance.hpp
Removed:
   mlpack/trunk/src/mlpack/methods/gmm/positive_definite_covariance.hpp
Modified:
   mlpack/trunk/src/mlpack/methods/gmm/em_fit.hpp

Modified: mlpack/trunk/src/mlpack/methods/gmm/em_fit.hpp
==============================================================================
--- mlpack/trunk/src/mlpack/methods/gmm/em_fit.hpp	(original)
+++ mlpack/trunk/src/mlpack/methods/gmm/em_fit.hpp	Wed Oct  2 20:11:18 2013
@@ -13,7 +13,7 @@
 // Default clustering mechanism.
 #include <mlpack/methods/kmeans/kmeans.hpp>
 // Default covariance matrix constraint.
-#include "positive_definite_covariance.hpp"
+#include "positive_definite_constraint.hpp"
 
 namespace mlpack {
 namespace gmm {
@@ -32,7 +32,7 @@
  * each point to a cluster.
  */
 template<typename InitialClusteringType = kmeans::KMeans<>,
-         typename CovarianceConstraintPolicy = PositiveDefiniteCovariance>
+         typename CovarianceConstraintPolicy = PositiveDefiniteConstraint>
 class EMFit
 {
  public:

Copied: mlpack/trunk/src/mlpack/methods/gmm/positive_definite_constraint.hpp (from r15902, /mlpack/trunk/src/mlpack/methods/gmm/positive_definite_covariance.hpp)
==============================================================================
--- /mlpack/trunk/src/mlpack/methods/gmm/positive_definite_covariance.hpp	(original)
+++ mlpack/trunk/src/mlpack/methods/gmm/positive_definite_constraint.hpp	Wed Oct  2 20:11:18 2013
@@ -1,11 +1,11 @@
 /**
- * @file positive_definite_covariance.hpp
+ * @file positive_definite_constraint.hpp
  * @author Ryan Curtin
  *
  * Restricts a covariance matrix to being positive definite.
  */
-#ifndef __MLPACK_METHODS_GMM_POSITIVE_DEFINITE_COVARIANCE_HPP
-#define __MLPACK_METHODS_GMM_POSITIVE_DEFINITE_COVARIANCE_HPP
+#ifndef __MLPACK_METHODS_GMM_POSITIVE_DEFINITE_CONSTRAINT_HPP
+#define __MLPACK_METHODS_GMM_POSITIVE_DEFINITE_CONSTRAINT_HPP
 
 namespace mlpack {
 namespace gmm {
@@ -13,7 +13,7 @@
 /**
  * Given a covariance matrix, force the matrix to be positive definite.
  */
-class PositiveDefiniteCovariance
+class PositiveDefiniteConstraint
 {
  public:
   /**



More information about the mlpack-svn mailing list