From 1bcd448f6e217655fae4bfbf62d8d3b6caa52503 Mon Sep 17 00:00:00 2001 From: skachano Date: Fri, 7 Oct 2016 09:49:47 +0000 Subject: Added the possibility to limit dimension git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/relaxed-witness@1676 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 16ec8706ffb981ff892960468cc4b809e61612e2 --- src/Witness_complex/example/example_witness_complex_off.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Witness_complex/example/example_witness_complex_off.cpp') diff --git a/src/Witness_complex/example/example_witness_complex_off.cpp b/src/Witness_complex/example/example_witness_complex_off.cpp index 849a0a40..37646faf 100644 --- a/src/Witness_complex/example/example_witness_complex_off.cpp +++ b/src/Witness_complex/example/example_witness_complex_off.cpp @@ -45,12 +45,12 @@ typedef std::vector< Point_d > Point_vector; int main(int argc, char * const argv[]) { if (argc != 4) { std::cerr << "Usage: " << argv[0] - << " path_to_point_file nbL alpha^2\n"; + << " path_to_point_file number_of_landmarks max_squared_alpha limit_dimension\n"; return 0; } std::string file_name = argv[1]; - int nbL = atoi(argv[2]); + int nbL = atoi(argv[2]), lim_dim = atoi(argv[4]); double alpha2 = atof(argv[3]); clock_t start, end; Gudhi::Simplex_tree<> simplex_tree; @@ -77,7 +77,7 @@ int main(int argc, char * const argv[]) { point_vector.begin(), point_vector.end()); - witness_complex.create_complex(simplex_tree, alpha2); + witness_complex.create_complex(simplex_tree, alpha2, lim_dim); end = clock(); std::cout << "Witness complex took " << static_cast(end - start) / CLOCKS_PER_SEC << " s. \n"; -- cgit v1.2.3