[mlpack-git] master: Add access to the reference set. (b44979b)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Mon Oct 19 16:04:32 EDT 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/09cd0d67f2fdae252a8ab85324e71dbb4dfe0010...fecf1194c123ced12d56e7daad761c7b9aaac262
>---------------------------------------------------------------
commit b44979b736dbea1a1b5cc31bc935ea541855ea98
Author: Ryan Curtin <ryan at ratml.org>
Date: Sun Oct 18 07:35:19 2015 -0400
Add access to the reference set.
>---------------------------------------------------------------
b44979b736dbea1a1b5cc31bc935ea541855ea98
src/mlpack/methods/neighbor_search/neighbor_search.hpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/mlpack/methods/neighbor_search/neighbor_search.hpp b/src/mlpack/methods/neighbor_search/neighbor_search.hpp
index ff01c88..56d9841 100644
--- a/src/mlpack/methods/neighbor_search/neighbor_search.hpp
+++ b/src/mlpack/methods/neighbor_search/neighbor_search.hpp
@@ -229,6 +229,9 @@ class NeighborSearch
//! Modify whether or not search is done in single-tree mode.
bool& SingleMode() { return singleMode; }
+ //! Access the reference dataset.
+ const MatType& ReferenceSet() const { return *referenceSet; }
+
//! Serialize the NeighborSearch model.
template<typename Archive>
void Serialize(Archive& ar, const unsigned int /* version */);
More information about the mlpack-git
mailing list