From ea216e9c11bf58ba32be89ab561b3a2396b7377c Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Fri, 15 Apr 2016 13:30:53 +0000 Subject: Filtration values are alpha square values for periodic_alpha_complex_3d Mention it in README git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/periodic_alpha_complex_3d@1127 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 6085fc3e79db765c041a06d6d05dd3d28685f7bd --- src/Persistent_cohomology/example/README | 33 ++++++++++++++-------- .../periodic_alpha_complex_3d_persistence.cpp | 2 +- 2 files changed, 22 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/Persistent_cohomology/example/README b/src/Persistent_cohomology/example/README index f490ed9a..7803e5ab 100644 --- a/src/Persistent_cohomology/example/README +++ b/src/Persistent_cohomology/example/README @@ -79,7 +79,8 @@ Betti numbers[0] = 1 Betti numbers[1] = 2 Betti numbers[2] = 1 -N.B.: alpha_complex_3d_persistence accepts only OFF files in 3D dimension. +N.B.: - alpha_complex_3d_persistence accepts only OFF files in 3D dimension. + - filtration values are alpha square values 2) d-Dimension case ------------------- @@ -101,7 +102,8 @@ Betti numbers[0] = 1 Betti numbers[1] = 2 Betti numbers[2] = 1 -N.B.: alpha_complex_persistence accepts OFF files in d-Dimension. +N.B.: - alpha_complex_persistence accepts OFF files in d-Dimension. + - filtration values are alpha square values 3) 3D periodic special case --------------------------- @@ -110,17 +112,24 @@ N.B.: alpha_complex_persistence accepts OFF files in d-Dimension. output: Periodic Delaunay computed. Simplex_tree dim: 3 -3 0 0 inf -3 1 0.05 inf -3 1 0.05 inf -3 1 0.05 inf -3 2 0.0707107 inf -3 2 0.0707107 inf -3 2 0.0707107 inf -3 3 0.0866025 inf - -N.B.: periodic_alpha_complex_3d_persistence accepts only OFF files in 3D dimension. In this example, the periodic cube +3 0 0 inf +3 1 0.0025 inf +3 1 0.0025 inf +3 1 0.0025 inf +3 2 0.005 inf +3 2 0.005 inf +3 2 0.005 inf +3 3 0.0075 inf + +Here we retrieve expected Betti numbers on a tore 3D: +Betti numbers[0] = 1 +Betti numbers[1] = 3 +Betti numbers[2] = 3 +Betti numbers[3] = 1 + +N.B.: - periodic_alpha_complex_3d_persistence accepts only OFF files in 3D dimension. In this example, the periodic cube is hard coded to { x = [0,1]; y = [0,1]; z = [0,1] } + - filtration values are alpha square values *********************************************************************************************************************** Example of use of PLAIN HOMOLOGY: diff --git a/src/Persistent_cohomology/example/periodic_alpha_complex_3d_persistence.cpp b/src/Persistent_cohomology/example/periodic_alpha_complex_3d_persistence.cpp index 750ebb1a..b8e1097d 100644 --- a/src/Persistent_cohomology/example/periodic_alpha_complex_3d_persistence.cpp +++ b/src/Persistent_cohomology/example/periodic_alpha_complex_3d_persistence.cpp @@ -249,7 +249,7 @@ int main(int argc, char * const argv[]) { } } // Construction of the simplex_tree - Filtration_value filtr = std::sqrt(*the_alpha_value_iterator); + Filtration_value filtr = /*std::sqrt*/(*the_alpha_value_iterator); #ifdef DEBUG_TRACES std::cout << "filtration = " << filtr << std::endl; #endif // DEBUG_TRACES -- cgit v1.2.3