[mlpack-git] master: Update documentation. (c260f6e)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Tue Apr 21 23:54:40 EDT 2015


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

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/861ac83cea1ceb728b2700f7b5d3550ca7b75839...c260f6ee781fa5c7efa72df7b0ea9890873bf7c4

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

commit c260f6ee781fa5c7efa72df7b0ea9890873bf7c4
Author: ryan <ryan at ratml.org>
Date:   Tue Apr 21 23:54:22 2015 -0400

    Update documentation.


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

c260f6ee781fa5c7efa72df7b0ea9890873bf7c4
 src/mlpack/methods/range_search/range_search.hpp | 28 ++++++++++--------------
 1 file changed, 11 insertions(+), 17 deletions(-)

diff --git a/src/mlpack/methods/range_search/range_search.hpp b/src/mlpack/methods/range_search/range_search.hpp
index 9504fd3..2c1b95e 100644
--- a/src/mlpack/methods/range_search/range_search.hpp
+++ b/src/mlpack/methods/range_search/range_search.hpp
@@ -29,22 +29,19 @@ class RangeSearch
 {
  public:
   /**
-   * Initialize the RangeSearch object with a different reference set and a
-   * query set.  Optionally, perform the computation in naive mode or
-   * single-tree mode, and set the leaf size used for tree-building.
-   * Additionally, an instantiated metric can be given, for cases where the
-   * distance metric holds data.
+   * Initialize the RangeSearch object with a given reference dataset (this is
+   * the dataset which is searched).  Optionally, perform the computation in
+   * naive mode or single-tree mode. Additionally, an instantiated metric can be
+   * given, for cases where the distance metric holds data.
    *
    * This method will copy the matrices to internal copies, which are rearranged
    * during tree-building.  You can avoid this extra copy by pre-constructing
    * the trees and passing them using a different constructor.
    *
    * @param referenceSet Reference dataset.
-   * @param querySet Query dataset.
    * @param naive Whether the computation should be done in O(n^2) naive mode.
    * @param singleMode Whether single-tree computation should be used (as
    *      opposed to dual-tree computation).
-   * @param leafSize The leaf size to be used during tree construction.
    * @param metric Instantiated distance metric.
    */
   RangeSearch(const typename TreeType::Mat& referenceSet,
@@ -53,14 +50,13 @@ class RangeSearch
               const MetricType metric = MetricType());
 
   /**
-   * Initialize the RangeSearch object with the given datasets and
-   * pre-constructed trees.  It is assumed that the points in referenceSet and
-   * querySet correspond to the points in referenceTree and queryTree,
-   * respectively.  Optionally, choose to use single-tree mode.  Naive
-   * mode is not available as an option for this constructor; instead, to run
-   * naive computation, construct a tree with all the points in one leaf (i.e.
-   * leafSize = number of points).  Additionally, an instantiated distance
-   * metric can be given, for cases where the distance metric holds data.
+   * Initialize the RangeSearch object with the given reference dataset and
+   * pre-constructed tree (the reference set is the set that is searched).  It
+   * is assumed that the points in referenceSet correspond to the points in
+   * referenceTree.  Optionally, choose to use single-tree mode, which will not
+   * build a tree on query points.  Naive mode is not available as an option for
+   * this constructor.  Additionally, an instantiated distance metric can be
+   * given, for cases where the distance metric holds data.
    *
    * There is no copying of the data matrices in this constructor (because
    * tree-building is not necessary), so this is the constructor to use when
@@ -74,9 +70,7 @@ class RangeSearch
    * @endnote
    *
    * @param referenceTree Pre-built tree for reference points.
-   * @param queryTree Pre-built tree for query points.
    * @param referenceSet Set of reference points corresponding to referenceTree.
-   * @param querySet Set of query points corresponding to queryTree.
    * @param singleMode Whether single-tree computation should be used (as
    *      opposed to dual-tree computation).
    * @param metric Instantiated distance metric.



More information about the mlpack-git mailing list