diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-03-18 23:57:39 +0100 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-03-18 23:57:39 +0100 |
commit | c8ae4d46d42340140d8687994f322d288e47a3bb (patch) | |
tree | 3d665526b0696bdc378f2572659fe6410aceca5b /src | |
parent | 3a2f852e87514edff2d6c91c0ced2f6c53b541a1 (diff) |
some cleanups
Diffstat (limited to 'src')
-rw-r--r-- | src/Collapse/example/rips_persistence_with_sc.cpp | 14 | ||||
-rw-r--r-- | src/Collapse/include/gudhi/PointSetGen.h | 7 |
2 files changed, 3 insertions, 18 deletions
diff --git a/src/Collapse/example/rips_persistence_with_sc.cpp b/src/Collapse/example/rips_persistence_with_sc.cpp index 70f7abbb..a462dcea 100644 --- a/src/Collapse/example/rips_persistence_with_sc.cpp +++ b/src/Collapse/example/rips_persistence_with_sc.cpp @@ -63,21 +63,17 @@ int main(int argc, char * const argv[]) { int dimension; double end_threshold; double steps; - int repetetions = 1; char manifold; Vector_of_points * point_vector; - - std::string manifold_full = "sphere"; - double r_min = 0.6; int dim_max = 2; - point_generator.program_options(argc, argv, steps, end_threshold, repetetions, manifold, dimension, dim_max, in_file_name, out_file_name); + point_generator.program_options(argc, argv, steps, end_threshold, manifold, dimension, dim_max, in_file_name, out_file_name); std::cout << "The current input values to run the program is: "<< std::endl; - std::cout << "steps, end_threshold, repetetions, manifold, dimension, max_complex_dimension, in_file_name, out_file_name" << std::endl; - std::cout << steps << ", " << end_threshold << ", " << repetetions << ", " << manifold << ", " << dimension << ", " << dim_max << ", " << in_file_name << ", " << out_file_name << std::endl; + std::cout << "steps, end_threshold, manifold, dimension, max_complex_dimension, in_file_name, out_file_name" << std::endl; + std::cout << steps << ", " << end_threshold << ", " << manifold << ", " << dimension << ", " << dim_max << ", " << in_file_name << ", " << out_file_name << std::endl; Map map_empty; @@ -120,7 +116,6 @@ int main(int argc, char * const argv[]) { Filtered_sorted_edge_list * edge_t = new Filtered_sorted_edge_list(); std::cout << "Computing the one-skeleton for threshold: " << end_threshold << std::endl; - auto begin_full_cmplx = std::chrono::high_resolution_clock::now(); if(manifold == 'm') { //Input is a distance 'm'atrix //Creating the edge list Rips_edge_list Rips_edge_list_from_file(distances, end_threshold); Rips_edge_list_from_file.create_edges(*edge_t); @@ -149,9 +144,6 @@ int main(int argc, char * const argv[]) { std::cerr << "Total number of egdes are zero." <<std::endl; exit(-1) ; } - - auto end_full_cmplx = std::chrono::high_resolution_clock::now(); - currentCreationTime = std::chrono::duration<double, std::milli>(end_full_cmplx - begin_full_cmplx).count(); // Rips_complex rips_complex_before_collapse(distances, end_threshold); Rips_complex rips_complex_after_collapse(*sparse_distances, end_threshold); diff --git a/src/Collapse/include/gudhi/PointSetGen.h b/src/Collapse/include/gudhi/PointSetGen.h index be83090b..45e9fbba 100644 --- a/src/Collapse/include/gudhi/PointSetGen.h +++ b/src/Collapse/include/gudhi/PointSetGen.h @@ -10,15 +10,11 @@ using Point = CGAL::Epick_d< CGAL::Dynamic_dimension_tag>::Point_d; using Vector_of_points = std::vector<Point>; -const double PI = 3.141592653589793238463; -#define _USE_MATH_DEFINES - class PointSetGen { public: void program_options(int argc, char * const argv[] , double & steps , double & end_thresold - , int & repetetions , char & manifold , int & dimension , int & dim_max @@ -34,9 +30,6 @@ class PointSetGen { "Steps of the threshold") ("end_thresold,e", po::value<double>(&end_thresold)->default_value(1), "Final threshold for rips complex.") - - ("repetetions,r", po::value<int>(&repetetions)->default_value(1), - "Num of repetetions of the experiments.") ("manifold,m", po::value<char>(&manifold)->default_value('s'), "Type of manifold") |