[mlpack-git] master: Remove Covariances() and Means(); fixes #346. ~R: fixed (060559d)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 22:11:26 EST 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40

>---------------------------------------------------------------

commit 060559df0e53b32082e283a6222276875355e4ba
Author: Ryan Curtin <ryan at ratml.org>
Date:   Thu Jan 8 18:03:22 2015 -0500

    Remove Covariances() and Means(); fixes #346.
    ~R: fixed


>---------------------------------------------------------------

060559df0e53b32082e283a6222276875355e4ba
 src/mlpack/methods/gmm/gmm.hpp | 27 ---------------------------
 1 file changed, 27 deletions(-)

diff --git a/src/mlpack/methods/gmm/gmm.hpp b/src/mlpack/methods/gmm/gmm.hpp
index 2437348..fab8974 100644
--- a/src/mlpack/methods/gmm/gmm.hpp
+++ b/src/mlpack/methods/gmm/gmm.hpp
@@ -241,33 +241,6 @@ class GMM
    */
   distribution::GaussianDistribution& Component(size_t i) { return dists[i]; }
 
-  //! Functions from earlier releases give errors
-  const std::vector<arma::vec>& Means() const
-  {
-    Log::Fatal << "GMM::Means() no longer supported."
-        << "See GMM::Components().";
-    return means;
-  }
-  std::vector<arma::vec>& Means()
-  {
-    Log::Fatal << "GMM::Means() no longer supported."
-        << "See GMM::Components().";
-    return means;
-  }
-  const std::vector<arma::mat>& Covariances() const
-  {
-    Log::Fatal << "GMM::Covariances() no longer supported."
-        << "See GMM::Components().";
-    return covariances;
-  }
-  std::vector<arma::mat>& Covariances()
-  {
-    Log::Fatal << "GMM::Covariances() no longer supported."
-        << "See GMM::Components().";
-    return covariances;
-  }
-
-
   //! Return a const reference to the a priori weights of each Gaussian.
   const arma::vec& Weights() const { return weights; }
   //! Return a reference to the a priori weights of each Gaussian.



More information about the mlpack-git mailing list