aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-06-02 13:19:07 -0300
committerSamuel Fadel <samuelfadel@gmail.com>2015-06-02 13:19:07 -0300
commite89864c3dc59b56bc85edd9f8498530f36c7ac77 (patch)
tree0de5cc2b7980756d6241f8b766105e399f16b197
parenta3858735ec68d518f830307da65606694345dca1 (diff)
Added missing reference in klDivergence.
-rw-r--r--measures.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/measures.cpp b/measures.cpp
index 8829ee8..1a6e4ec 100644
--- a/measures.cpp
+++ b/measures.cpp
@@ -29,7 +29,7 @@ arma::vec mp::klDivergence(const arma::mat &P, const arma::mat &Q)
return diver;
}
-void mp::klDivergence(const arma::mat &P, const arma::mat &Q, arma::vec diver)
+void mp::klDivergence(const arma::mat &P, const arma::mat &Q, arma::vec &diver)
{
assert(P.n_rows == P.n_cols);
assert(Q.n_rows == Q.n_cols);