[mlpack] 83/207: Fix header guards.

Barak A. Pearlmutter barak+git at pearlmutter.net
Thu Mar 23 17:53:43 UTC 2017


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch master
in repository mlpack.

commit 155033e1a974f3c3d0088614e7cf64f7e78623fc
Author: Ryan Curtin <ryan at ratml.org>
Date:   Wed Feb 22 17:24:28 2017 -0500

    Fix header guards.
---
 src/mlpack/methods/dbscan/dbscan.hpp                 | 4 ++--
 src/mlpack/methods/dbscan/dbscan_impl.hpp            | 4 ++--
 src/mlpack/methods/dbscan/random_point_selection.hpp | 6 ++++++
 3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/mlpack/methods/dbscan/dbscan.hpp b/src/mlpack/methods/dbscan/dbscan.hpp
index af9d95f..133823d 100644
--- a/src/mlpack/methods/dbscan/dbscan.hpp
+++ b/src/mlpack/methods/dbscan/dbscan.hpp
@@ -5,8 +5,8 @@
  * An implementation of the DBSCAN clustering method, which is flexible enough
  * to support other algorithms for finding nearest neighbors.
  */
-#ifndef __MLPACK_METHODS_DBSCAN_DBSCAN_HPP
-#define __MLPACK_METHODS_DBSCAN_DBSCAN_HPP
+#ifndef MLPACK_METHODS_DBSCAN_DBSCAN_HPP
+#define MLPACK_METHODS_DBSCAN_DBSCAN_HPP
 
 #include <mlpack/core.hpp>
 #include <mlpack/methods/range_search/range_search.hpp>
diff --git a/src/mlpack/methods/dbscan/dbscan_impl.hpp b/src/mlpack/methods/dbscan/dbscan_impl.hpp
index ca0f3f7..5fd075d 100644
--- a/src/mlpack/methods/dbscan/dbscan_impl.hpp
+++ b/src/mlpack/methods/dbscan/dbscan_impl.hpp
@@ -4,8 +4,8 @@
  *
  * Implementation of DBSCAN.
  */
-#ifndef __MLPACK_METHODS_DBSCAN_DBSCAN_IMPL_HPP
-#define __MLPACK_METHODS_DBSCAN_DBSCAN_IMPL_HPP
+#ifndef MLPACK_METHODS_DBSCAN_DBSCAN_IMPL_HPP
+#define MLPACK_METHODS_DBSCAN_DBSCAN_IMPL_HPP
 
 #include "dbscan.hpp"
 
diff --git a/src/mlpack/methods/dbscan/random_point_selection.hpp b/src/mlpack/methods/dbscan/random_point_selection.hpp
index f4f373b..920c85f 100644
--- a/src/mlpack/methods/dbscan/random_point_selection.hpp
+++ b/src/mlpack/methods/dbscan/random_point_selection.hpp
@@ -13,11 +13,17 @@
 namespace mlpack {
 namespace dbscan {
 
+/**
+ * This class can be used to randomly select the next point to use for DBSCAN.
+ */
 class RandomPointSelection
 {
  public:
   /**
    * Select the next point to use, randomly.
+   *
+   * @param unvisited Bitset indicating which points are unvisited.
+   * @param data Unused data.
    */
   template<typename MatType>
   static size_t Select(const boost::dynamic_bitset<>& unvisited,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git



More information about the debian-science-commits mailing list