diff options
author | skachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-10-05 11:53:47 +0000 |
---|---|---|
committer | skachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-10-05 11:53:47 +0000 |
commit | 1de8ffacd531550f0ce5e871ec0f69924df3ee44 (patch) | |
tree | 6a68bbf4d56e5c88fe0cace3188475fa360bab97 /src/Witness_complex/include/gudhi/Strong_witness_complex.h | |
parent | e061bc2e16e8fdb7368479f101642ae239ffc7dc (diff) |
Minor tweaks
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/relaxed-witness@1645 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 00b32608afa185b5f66679f556d8a4a892327b0b
Diffstat (limited to 'src/Witness_complex/include/gudhi/Strong_witness_complex.h')
-rw-r--r-- | src/Witness_complex/include/gudhi/Strong_witness_complex.h | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/Witness_complex/include/gudhi/Strong_witness_complex.h b/src/Witness_complex/include/gudhi/Strong_witness_complex.h index 539c872d..f5633a98 100644 --- a/src/Witness_complex/include/gudhi/Strong_witness_complex.h +++ b/src/Witness_complex/include/gudhi/Strong_witness_complex.h @@ -63,12 +63,6 @@ namespace Gudhi { namespace witness_complex { -// /* -// * \private -// \class Witness_complex -// \brief Constructs the witness complex for the given set of witnesses and landmarks. -// \ingroup witness_complex -// */ template< class Kernel_ > class Strong_witness_complex { private: @@ -80,16 +74,6 @@ private: typedef typename Kd_tree::INS_range Nearest_landmark_range; typedef typename std::vector<Nearest_landmark_range> Nearest_landmark_table; typedef typename Nearest_landmark_range::iterator Nearest_landmark_row_iterator; - //typedef std::vector<std::pair<unsigned,FT>> Nearest_landmarks; - - // struct Active_witness { - // int witness_id; - // int landmark_id; - - // Active_witness(int witness_id_, int landmark_id_) - // : witness_id(witness_id_), - // landmark_id(landmark_id_) { } - // }; typedef std::vector< double > Point_t; typedef std::vector< Point_t > Point_Vector; @@ -98,8 +82,8 @@ private: typedef std::ptrdiff_t Witness_id; - typedef std::ptrdiff_t Landmark_id; - typedef std::pair<Landmark_id, FT> Id_distance_pair; + typedef typename Nearest_landmark_range::Point_with_transformed_distance Id_distance_pair; + typedef typename Id_distance_pair::first_type Landmark_id; typedef Active_witness<Id_distance_pair, Nearest_landmark_range> ActiveWitness; typedef std::list< ActiveWitness > ActiveWitnessList; typedef std::vector< Landmark_id > typeVectorVertex; |