summaryrefslogtreecommitdiff
path: root/src/Spatial_searching
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-09-27 21:12:11 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-09-27 21:12:11 +0000
commit33d015c02139c5423fb4826d0c27965680edc669 (patch)
treecb7dc0d55601365540297b781093061c130e6ca2 /src/Spatial_searching
parente8a9f33d66416d0ae2a80715c1bba0c5aa030497 (diff)
parent526625e6faa7b01430b481d5c21d7d7dfe16e290 (diff)
Merge ST_remove_useless_global_filtration branch
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@2722 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 0d9014cf0ab95f368eb3d35b7703602a372805c8
Diffstat (limited to 'src/Spatial_searching')
-rw-r--r--src/Spatial_searching/include/gudhi/Kd_tree_search.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/Spatial_searching/include/gudhi/Kd_tree_search.h b/src/Spatial_searching/include/gudhi/Kd_tree_search.h
index a4385c84..af04736b 100644
--- a/src/Spatial_searching/include/gudhi/Kd_tree_search.h
+++ b/src/Spatial_searching/include/gudhi/Kd_tree_search.h
@@ -193,7 +193,7 @@ class Kd_tree_search {
/// \brief Search incrementally for the nearest neighbors from a query point.
/// @param[in] p The query point.
/// @param[in] eps Approximation factor.
- /// @return A range (whose `value_type` is `std::size_t`) containing the
+ /// @return A range (whose `value_type` is `std::size_t`) containing the
/// neighbors sorted by their distance to p.
/// All the neighbors are not computed by this function, but they will be
/// computed incrementally when the iterator on the range is incremented.
@@ -239,7 +239,7 @@ class Kd_tree_search {
/// \brief Search incrementally for the farthest neighbors from a query point.
/// @param[in] p The query point.
/// @param[in] eps Approximation factor.
- /// @return A range (whose `value_type` is `std::size_t`)
+ /// @return A range (whose `value_type` is `std::size_t`)
/// containing the neighbors sorted by their distance to p.
/// All the neighbors are not computed by this function, but they will be
/// computed incrementally when the iterator on the range is incremented.
@@ -264,12 +264,10 @@ class Kd_tree_search {
/// Note: `it` is used this way: `*it++ = each_point`.
/// @param[in] eps Approximation factor.
template <typename OutputIterator>
- void near_search(
- Point const& p,
- FT radius,
- OutputIterator it,
- FT eps = FT(0)) const {
-
+ void near_search(Point const& p,
+ FT radius,
+ OutputIterator it,
+ FT eps = FT(0)) const {
m_tree.search(it, Fuzzy_sphere(p, radius, eps, m_tree.traits()));
}