diff options
author | skachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-01-30 12:37:32 +0000 |
---|---|---|
committer | skachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-01-30 12:37:32 +0000 |
commit | ba522fc8c114b2de36c4b399d74edce8883d2577 (patch) | |
tree | 99d788e67aca56462aca1dca3532b878b2191457 /src/Witness_complex | |
parent | 1a3119c6034e1a79daf9d61fe005b0f1626d379a (diff) |
Added a line to doc following Clément's comment
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/relaxed-witness@2026 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: a3d4afc6110079c9826045c9de61fab9bc52f31e
Diffstat (limited to 'src/Witness_complex')
-rw-r--r-- | src/Witness_complex/doc/Witness_complex_doc.h | 4 | ||||
-rw-r--r-- | src/Witness_complex/example/example_strong_witness_complex_off.cpp | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/Witness_complex/doc/Witness_complex_doc.h b/src/Witness_complex/doc/Witness_complex_doc.h index 247d862a..cd54887a 100644 --- a/src/Witness_complex/doc/Witness_complex_doc.h +++ b/src/Witness_complex/doc/Witness_complex_doc.h @@ -53,9 +53,11 @@ 2. Construct lists of nearest landmarks for each witness (special structure Gudhi::witness_complex::Active_witness is used internally). 3. Construct the witness complex for nearest landmark lists. + All the computations of nearest landmarks in Euclidean case are exact thanks to Gudhi::spatial_searching::Kd_tree_search data structure. + In the non-Euclidean classes, the lists of nearest landmarks are supposed to be given as input. - The constructors take on the step 1, while the function 'create_complex' executes the steps 2 and 3. + The constructors take on the steps 1 and 2, while the function 'create_complex' executes the step 3. \section witnessexample1 Example 1: Constructing weak relaxed witness complex from an off file diff --git a/src/Witness_complex/example/example_strong_witness_complex_off.cpp b/src/Witness_complex/example/example_strong_witness_complex_off.cpp index 80699e78..61b8bc4a 100644 --- a/src/Witness_complex/example/example_strong_witness_complex_off.cpp +++ b/src/Witness_complex/example/example_strong_witness_complex_off.cpp @@ -37,7 +37,7 @@ int main(int argc, char * const argv[]) { Point_vector point_vector, landmarks; Gudhi::Points_off_reader<Point_d> off_reader(file_name); if (!off_reader.is_valid()) { - std::cerr << "Witness complex - Unable to read file " << file_name << "\n"; + std::cerr << "Strong witness complex - Unable to read file " << file_name << "\n"; exit(-1); // ----- >> } point_vector = Point_vector(off_reader.get_point_cloud()); @@ -55,7 +55,7 @@ int main(int argc, char * const argv[]) { witness_complex.create_complex(simplex_tree, alpha2, lim_dim); end = clock(); - std::cout << "Witness complex took " + std::cout << "Strong witness complex took " << static_cast<double>(end - start) / CLOCKS_PER_SEC << " s. \n"; std::cout << "Number of simplices is: " << simplex_tree.num_simplices() << "\n"; } |