[mlpack-git] master, mlpack-1.0.x: Minor refactoring for brevity. (87748e7)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:50:22 EST 2015
Repository : https://github.com/mlpack/mlpack
On branches: master,mlpack-1.0.x
Link : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40
>---------------------------------------------------------------
commit 87748e7280b8143b0f6a5df9416d0f990a59baf2
Author: Ryan Curtin <ryan at ratml.org>
Date: Wed Jul 2 13:18:07 2014 +0000
Minor refactoring for brevity.
>---------------------------------------------------------------
87748e7280b8143b0f6a5df9416d0f990a59baf2
src/mlpack/core/dists/gaussian_distribution.hpp | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/src/mlpack/core/dists/gaussian_distribution.hpp b/src/mlpack/core/dists/gaussian_distribution.hpp
index 99d1cdd..20f2524 100644
--- a/src/mlpack/core/dists/gaussian_distribution.hpp
+++ b/src/mlpack/core/dists/gaussian_distribution.hpp
@@ -80,24 +80,14 @@ class GaussianDistribution
void Estimate(const arma::mat& observations,
const arma::vec& probabilities);
- /**
- * Return the mean.
- */
+ //! Return the mean.
const arma::vec& Mean() const { return mean; }
-
- /**
- * Return a modifiable copy of the mean.
- */
+ //! Return a modifiable copy of the mean.
arma::vec& Mean() { return mean; }
- /**
- * Return the covariance matrix.
- */
+ //! Return the covariance matrix.
const arma::mat& Covariance() const { return covariance; }
-
- /**
- * Return a modifiable copy of the covariance.
- */
+ //! Return a modifiable copy of the covariance.
arma::mat& Covariance() { return covariance; }
/**
More information about the mlpack-git
mailing list