summaryrefslogtreecommitdiff
path: root/src/Witness_complex/include
diff options
context:
space:
mode:
authorskachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-02-01 10:54:18 +0000
committerskachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-02-01 10:54:18 +0000
commite4a627b0675453fc88d3a43eef3bff663d3f8121 (patch)
treebc0070c8612ba6293205ca481c769d174a664d97 /src/Witness_complex/include
parent1e65604043337b4bada05f431eb8f45a5691fae4 (diff)
The rest of the comments
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/relaxed-witness@2043 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 37e81613f87a77768bde47d3539a2dbc6bf3552b
Diffstat (limited to 'src/Witness_complex/include')
-rw-r--r--src/Witness_complex/include/gudhi/Strong_witness_complex.h13
-rw-r--r--src/Witness_complex/include/gudhi/Witness_complex.h14
2 files changed, 14 insertions, 13 deletions
diff --git a/src/Witness_complex/include/gudhi/Strong_witness_complex.h b/src/Witness_complex/include/gudhi/Strong_witness_complex.h
index 5858d917..058b5bbc 100644
--- a/src/Witness_complex/include/gudhi/Strong_witness_complex.h
+++ b/src/Witness_complex/include/gudhi/Strong_witness_complex.h
@@ -41,9 +41,9 @@ namespace witness_complex {
* \brief Constructs strong witness complex for a given table of nearest landmarks with respect to witnesses.
* \ingroup witness_complex
*
- * \tparam Nearest_landmark_table_ needs to be a range of a range of nearest landmarks.
- * The range of nearest landmarks should admit a member type 'iterator'. The dereference type
- * of the nearest landmark range iterator needs to be 'std::pair<std::size_t, double>'.
+ * \tparam Nearest_landmark_table_ needs to be a CopyConstructible range of a range of pairs of nearest landmarks and distances.
+ * The range of pairs must admit a member type 'iterator'. The dereference type
+ * of the pair range iterator needs to be 'std::pair<std::size_t, double>'.
*/
template< class Nearest_landmark_table_ >
class Strong_witness_complex {
@@ -76,9 +76,10 @@ private:
/**
* \brief Initializes member variables before constructing simplicial complex.
* \details Records nearest landmark table.
- * @param[in] nearest_landmark_table needs to be a range of a range of nearest landmarks.
- * The range of nearest landmarks should admit a member type 'iterator'. The dereference type
- * of the nearest landmark range iterator needs to be 'std::pair<std::size_t, double>'. */
+ * @param[in] nearest_landmark_table needs to be a CopyConstructible range of a range of pairs of nearest landmarks and distances.
+ * The range of pairs must admit a member type 'iterator'. The dereference type
+ * of the pair range iterator needs to be 'std::pair<std::size_t, double>'.
+ */
Strong_witness_complex(Nearest_landmark_table_ const & nearest_landmark_table)
: nearest_landmark_table_(std::begin(nearest_landmark_table), std::end(nearest_landmark_table))
{
diff --git a/src/Witness_complex/include/gudhi/Witness_complex.h b/src/Witness_complex/include/gudhi/Witness_complex.h
index 05a26f7f..a3436eba 100644
--- a/src/Witness_complex/include/gudhi/Witness_complex.h
+++ b/src/Witness_complex/include/gudhi/Witness_complex.h
@@ -42,9 +42,9 @@ namespace witness_complex {
* \brief Constructs (weak) witness complex for a given table of nearest landmarks with respect to witnesses.
* \ingroup witness_complex
*
- * \tparam Nearest_landmark_table_ needs to be a range of a range of nearest landmarks.
- * The range of nearest landmarks should admit a member type 'iterator'. The dereference type
- * of the nearest landmark range iterator needs to be 'std::pair<std::size_t, double>'.
+ * \tparam Nearest_landmark_table_ needs to be a CopyConstructible range of a range of pairs of nearest landmarks and distances.
+ * The range of pairs must admit a member type 'iterator'. The dereference type
+ * of the pair range iterator needs to be 'std::pair<std::size_t, double>'.
*/
template< class Nearest_landmark_table_ >
class Witness_complex {
@@ -76,9 +76,9 @@ private:
/**
* \brief Initializes member variables before constructing simplicial complex.
* \details Records nearest landmark table.
- * @param[in] nearest_landmark_table needs to be a range of a range of nearest landmarks.
- * The range of nearest landmarks should admit a member type 'iterator'. The dereference type
- * of the nearest landmark range iterator needs to be 'std::pair<std::size_t, double>'.
+ * @param[in] nearest_landmark_table needs to be a CopyConstructible range of a range of pairs of nearest landmarks and distances.
+ * The range of pairs must admit a member type 'iterator'. The dereference type
+ * of the pair range iterator needs to be 'std::pair<std::size_t, double>'.
*/
Witness_complex(Nearest_landmark_table_ const & nearest_landmark_table)
@@ -99,7 +99,7 @@ private:
template < typename SimplicialComplexForWitness >
bool create_complex(SimplicialComplexForWitness& complex,
double max_alpha_square,
- Landmark_id limit_dimension = std::numeric_limits<Landmark_id>::max()) const
+ std::size_t limit_dimension = std::numeric_limits<std::size_t>::max()) const
{
if (complex.num_vertices() > 0) {
std::cerr << "Witness complex cannot create complex - complex is not empty.\n";