[mlpack-git] master: Add method to access to the reference tree. (2601243)

gitdub at mlpack.org gitdub at mlpack.org
Mon Aug 29 13:22:52 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/1148f1652e139c9037eb3813550090313d089a30...a8a8a1381b529a01420de6e792a4a1e7bd58a626

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

commit 260124323435881a385ebd7bade4d68a597f42da
Author: MarcosPividori <marcos.pividori at gmail.com>
Date:   Mon Aug 29 14:22:52 2016 -0300

    Add method to access to the reference tree.


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

260124323435881a385ebd7bade4d68a597f42da
 src/mlpack/methods/neighbor_search/neighbor_search.hpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/mlpack/methods/neighbor_search/neighbor_search.hpp b/src/mlpack/methods/neighbor_search/neighbor_search.hpp
index 9b8d51a..b262ec6 100644
--- a/src/mlpack/methods/neighbor_search/neighbor_search.hpp
+++ b/src/mlpack/methods/neighbor_search/neighbor_search.hpp
@@ -528,6 +528,11 @@ class NeighborSearch
   //! Access the reference dataset.
   const MatType& ReferenceSet() const { return *referenceSet; }
 
+  //! Access the reference tree.
+  const Tree& ReferenceTree() const { return *referenceTree; }
+  //! Modify the reference tree.
+  Tree& ReferenceTree() { return *referenceTree; }
+
   //! Serialize the NeighborSearch model.
   template<typename Archive>
   void Serialize(Archive& ar, const unsigned int /* version */);




More information about the mlpack-git mailing list