From 52ed0100160b9a038608bfb72968a38b98bcd345 Mon Sep 17 00:00:00 2001 From: salinasd Date: Wed, 17 Dec 2014 12:34:37 +0000 Subject: doc + skbl example git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@370 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 275a355a9d88697bb42fa6f4c50cf9403906e588 --- src/Contraction/doc/SO3_rips.png | Bin 0 -> 883320 bytes src/Contraction/doc/SO3_simplified.png | Bin 0 -> 48126 bytes src/Contraction/doc/SO3points.png | Bin 0 -> 62539 bytes src/Contraction/doc/so3.png | Bin 0 -> 137258 bytes src/Contraction/doc/so3.svg | 209 +++++++++++++++++++++++ src/Contraction/doc/zoom.png | Bin 0 -> 39710 bytes src/Contraction/include/gudhi/Edge_contraction.h | 12 +- 7 files changed, 216 insertions(+), 5 deletions(-) create mode 100644 src/Contraction/doc/SO3_rips.png create mode 100644 src/Contraction/doc/SO3_simplified.png create mode 100644 src/Contraction/doc/SO3points.png create mode 100644 src/Contraction/doc/so3.png create mode 100644 src/Contraction/doc/so3.svg create mode 100644 src/Contraction/doc/zoom.png (limited to 'src/Contraction') diff --git a/src/Contraction/doc/SO3_rips.png b/src/Contraction/doc/SO3_rips.png new file mode 100644 index 00000000..60452f86 Binary files /dev/null and b/src/Contraction/doc/SO3_rips.png differ diff --git a/src/Contraction/doc/SO3_simplified.png b/src/Contraction/doc/SO3_simplified.png new file mode 100644 index 00000000..f70a1903 Binary files /dev/null and b/src/Contraction/doc/SO3_simplified.png differ diff --git a/src/Contraction/doc/SO3points.png b/src/Contraction/doc/SO3points.png new file mode 100644 index 00000000..0362d98f Binary files /dev/null and b/src/Contraction/doc/SO3points.png differ diff --git a/src/Contraction/doc/so3.png b/src/Contraction/doc/so3.png new file mode 100644 index 00000000..e66acae1 Binary files /dev/null and b/src/Contraction/doc/so3.png differ diff --git a/src/Contraction/doc/so3.svg b/src/Contraction/doc/so3.svg new file mode 100644 index 00000000..adea3f38 --- /dev/null +++ b/src/Contraction/doc/so3.svg @@ -0,0 +1,209 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + Point cloud sampling SO3 (points are in R but projected into Rfor vizualization) + 9 + 3 + Rips complex built uppon these points20 millions simplices + Simplicial complex obtained after simplification714 simplices + + diff --git a/src/Contraction/doc/zoom.png b/src/Contraction/doc/zoom.png new file mode 100644 index 00000000..38d2b520 Binary files /dev/null and b/src/Contraction/doc/zoom.png differ diff --git a/src/Contraction/include/gudhi/Edge_contraction.h b/src/Contraction/include/gudhi/Edge_contraction.h index b5d85ae4..94638415 100644 --- a/src/Contraction/include/gudhi/Edge_contraction.h +++ b/src/Contraction/include/gudhi/Edge_contraction.h @@ -57,12 +57,14 @@ most operations needed (link computation, edge contraction and so on) have polyn The simplification can be done without enumerating the set of simplices that is often non tracktable in high-dimension and is then very efficient (sub-linear with regards to the number of simplices in practice). -A typical application of this package for homology group computation and is illustrated in the next three figure where a Rips is built uppon a set of high-dimensional points. -It has initially a huge number of simplices (todo) but simplifying it to a much reduced form with todo vertices takes only few seconds on a desktop machine. +A typical application of this package for homology group computation and is illustrated in the next figure where a Rips is built uppon a set of high-dimensional points and +simplified with edge contractions. +It has initially a big number of simplices (around 20 millions) but simplifying it to a much reduced form with 15 vertices (and 714 simplices) takes only few seconds on a desktop machine (see the example bellow). One can then compute homology group with a simplicial complex of less than one hundred simplices instead of running the homology algorithm on the much bigger initial set of -simplices. +simplices which would take much more time and memory. +\image html "so3.png" "Edge contraction illustration" \section Design @@ -71,7 +73,7 @@ This class design is policy based and heavily inspired from the similar edge col \subsection Policies -Four policies can be customized in this package. +Four policies can be customized in this package: \li Cost_policy: specify how much cost an edge contraction of a given edge. The edge with lowest cost is iteratively picked and contracted if valid. \li Valid_contraction_policy: specify if a given edge contraction is valid. For instance, this policy can check the link condition which ensures that the homotopy type is preserved afer the edge contraction. @@ -107,7 +109,7 @@ to simplices in an external map if storing information on simplices such as orientation is needed. -\image html "sphere_contraction.png" "Time to simplify random 2-spheres to a tetrahedron" width=10cm +\image html "sphere_contraction.png" "Time in seconds to simplify random 2-spheres to a tetrahedron" width=10cm \section Example -- cgit v1.2.3