summaryrefslogtreecommitdiff
path: root/src/Cech_complex/example
diff options
context:
space:
mode:
authorHind-M <hind.montassif@gmail.com>2022-02-11 15:00:27 +0100
committerHind-M <hind.montassif@gmail.com>2022-02-11 15:00:27 +0100
commit2d1fb6b63f0ca0c7e027cc298fc16198a6283df1 (patch)
tree5e25c1700a914eb2b180f49777a03503e34644aa /src/Cech_complex/example
parent307f5f50a806168deb236e263c58dbed3f776ad0 (diff)
Do some code clean up/renaming
Diffstat (limited to 'src/Cech_complex/example')
-rw-r--r--src/Cech_complex/example/cech_complex_example_from_points.cpp2
-rw-r--r--src/Cech_complex/example/cech_complex_step_by_step.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Cech_complex/example/cech_complex_example_from_points.cpp b/src/Cech_complex/example/cech_complex_example_from_points.cpp
index 78861951..38021e4a 100644
--- a/src/Cech_complex/example/cech_complex_example_from_points.cpp
+++ b/src/Cech_complex/example/cech_complex_example_from_points.cpp
@@ -16,7 +16,7 @@ int main() {
using FT = typename Kernel::FT;
using Point = typename Kernel::Point_d;
using Point_cloud = std::vector<Point>;
- using Cech_complex = Gudhi::cech_complex::Cech_complex<Simplex_tree, Point_cloud, Kernel, Simplex_tree>;
+ using Cech_complex = Gudhi::cech_complex::Cech_complex<Kernel, Simplex_tree>;
Point_cloud points;
diff --git a/src/Cech_complex/example/cech_complex_step_by_step.cpp b/src/Cech_complex/example/cech_complex_step_by_step.cpp
index c8dd1585..4401f6af 100644
--- a/src/Cech_complex/example/cech_complex_step_by_step.cpp
+++ b/src/Cech_complex/example/cech_complex_step_by_step.cpp
@@ -9,7 +9,7 @@
*/
#include <gudhi/graph_simplicial_complex.h>
-#include <gudhi/Cech_complex/Cech_kernel.h>
+#include <gudhi/sphere_circumradius.h>
#include <gudhi/Simplex_tree.h>
#include <gudhi/Points_off_io.h>
@@ -52,7 +52,7 @@ class Cech_blocker {
std::clog << "#(" << vertex << ")#";
#endif // DEBUG_TRACES
}
- Filtration_value radius = Gudhi::Minimal_enclosing_ball_radius<Kernel>()(points);
+ Filtration_value radius = Gudhi::cech_complex::Sphere_circumradius<Kernel>()(points);
#ifdef DEBUG_TRACES
std::clog << "radius = " << radius << " - " << (radius > max_radius_) << std::endl;
#endif // DEBUG_TRACES
@@ -83,7 +83,7 @@ int main(int argc, char* argv[]) {
// Compute the proximity graph of the points
Proximity_graph prox_graph = Gudhi::compute_proximity_graph<Simplex_tree>(off_reader.get_point_cloud(), max_radius,
- Gudhi::Minimal_enclosing_ball_radius<Kernel>());
+ Gudhi::cech_complex::Sphere_circumradius<Kernel>());
// Construct the Cech complex in a Simplex Tree
Simplex_tree st;