diff options
author | skachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-10-07 10:29:09 +0000 |
---|---|---|
committer | skachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-10-07 10:29:09 +0000 |
commit | 78f1193dc1d9b5e03a2e4725f7b2fddda333b7ae (patch) | |
tree | 0e77f6cb2cc6bbfa8afc8b41b9eb6ed8282127e3 /src/Witness_complex/include/gudhi/Strong_witness_complex.h | |
parent | 1bcd448f6e217655fae4bfbf62d8d3b6caa52503 (diff) |
Documented member functions
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/relaxed-witness@1677 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 7946666e5b994a9c76c1d7dc8e9bcdb4526afddf
Diffstat (limited to 'src/Witness_complex/include/gudhi/Strong_witness_complex.h')
-rw-r--r-- | src/Witness_complex/include/gudhi/Strong_witness_complex.h | 48 |
1 files changed, 3 insertions, 45 deletions
diff --git a/src/Witness_complex/include/gudhi/Strong_witness_complex.h b/src/Witness_complex/include/gudhi/Strong_witness_complex.h index e125d307..1ce050ad 100644 --- a/src/Witness_complex/include/gudhi/Strong_witness_complex.h +++ b/src/Witness_complex/include/gudhi/Strong_witness_complex.h @@ -23,42 +23,14 @@ #ifndef STRONG_WITNESS_COMPLEX_H_ #define STRONG_WITNESS_COMPLEX_H_ -#include <boost/container/flat_map.hpp> -#include <boost/iterator/transform_iterator.hpp> -#include <algorithm> #include <utility> #include <vector> #include <list> -#include <set> -#include <queue> #include <limits> -#include <math.h> -#include <ctime> -#include <iostream> #include "Active_witness/Active_witness.h" -#include <gudhi/Simplex_tree.h> #include <gudhi/Kd_tree_search.h> - -// Needed for nearest neighbours -#include <CGAL/Cartesian_d.h> -#include <CGAL/Search_traits.h> -#include <CGAL/Search_traits_adapter.h> -#include <CGAL/property_map.h> -#include <CGAL/Epick_d.h> -#include <CGAL/Orthogonal_k_neighbor_search.h> - -#include <boost/tuple/tuple.hpp> -#include <boost/iterator/zip_iterator.hpp> -#include <boost/iterator/counting_iterator.hpp> -#include <boost/range/iterator_range.hpp> - -// Needed for the adjacency graph in bad link search -#include <boost/graph/graph_traits.hpp> -#include <boost/graph/adjacency_list.hpp> -#include <boost/graph/connected_components.hpp> - namespace gss = Gudhi::spatial_searching; namespace Gudhi { @@ -102,21 +74,9 @@ private: //@{ - // Witness_range<Closest_landmark_range<Vertex_handle>> - /* - * \brief Iterative construction of the (weak) witness complex. - * \details The witness complex is written in sc_ basing on a matrix knn of - * nearest neighbours of the form {witnesses}x{landmarks}. - * - * The type KNearestNeighbors can be seen as - * Witness_range<Closest_landmark_range<Vertex_handle>>, where - * Witness_range and Closest_landmark_range are random access ranges. - * - * Constructor takes into account at most (dim+1) - * first landmarks from each landmark range to construct simplices. - * - * Landmarks are supposed to be in [0,nbL_-1] + * \brief Initializes member variables before constructing simplicial complex. + * \details The parameters should satisfy InputIterator C++ concepts. */ template< typename InputIteratorLandmarks, typename InputIteratorWitnesses > @@ -135,7 +95,7 @@ private: return landmarks_[vertex]; } - /** \brief Outputs the (weak) witness complex with + /** \brief Outputs the (strong) witness complex with * squared relaxation parameter 'max_alpha_square' * to simplicial complex 'complex'. * The parameter 'limit_dimension' represents the maximal dimension of the simplicial complex @@ -161,12 +121,10 @@ private: return false; } typeVectorVertex vv; - //ActiveWitnessList active_witnesses;// = new ActiveWitnessList(); for (unsigned i = 0; i != nbL; ++i) { // initial fill of 0-dimensional simplices vv = {i}; complex.insert_simplex(vv, Filtration_value(0.0)); - /* TODO Error if not inserted : normally no need here though*/ } for (auto w: witnesses_) { ActiveWitness aw(landmark_tree_.query_incremental_nearest_neighbors(w)); |