diff options
author | Gard Spreemann <gspr@nonempty.org> | 2019-09-25 14:29:41 +0200 |
---|---|---|
committer | Gard Spreemann <gspr@nonempty.org> | 2019-09-25 14:29:41 +0200 |
commit | 599d68cd916f533bdb66dd9e684dd5703233b6bb (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /example/Rips_complex/example_sparse_rips.cpp | |
parent | a2e642954ae39025e041471d486ecbac25dff440 (diff) |
Delete all files in order to incorporate upstream's move to git.
Diffstat (limited to 'example/Rips_complex/example_sparse_rips.cpp')
-rw-r--r-- | example/Rips_complex/example_sparse_rips.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/example/Rips_complex/example_sparse_rips.cpp b/example/Rips_complex/example_sparse_rips.cpp deleted file mode 100644 index 1c95b48c..00000000 --- a/example/Rips_complex/example_sparse_rips.cpp +++ /dev/null @@ -1,30 +0,0 @@ -#include <gudhi/Sparse_rips_complex.h> -#include <gudhi/Simplex_tree.h> -#include <gudhi/distance_functions.h> - -#include <iostream> -#include <vector> - -int main() { - using Point = std::vector<double>; - using Simplex_tree = Gudhi::Simplex_tree<Gudhi::Simplex_tree_options_fast_persistence>; - using Filtration_value = Simplex_tree::Filtration_value; - using Sparse_rips = Gudhi::rips_complex::Sparse_rips_complex<Filtration_value>; - - Point points[] = {{1.0, 1.0}, {7.0, 0.0}, {4.0, 6.0}, {9.0, 6.0}, {0.0, 14.0}, {2.0, 19.0}, {9.0, 17.0}}; - - // ---------------------------------------------------------------------------- - // Init from Euclidean points - // ---------------------------------------------------------------------------- - double epsilon = 2; // very rough, no guarantees - Sparse_rips sparse_rips(points, Gudhi::Euclidean_distance(), epsilon); - - Simplex_tree stree; - sparse_rips.create_complex(stree, 10); - - // ---------------------------------------------------------------------------- - // Display information about the complex - // ---------------------------------------------------------------------------- - std::cout << "Sparse Rips complex is of dimension " << stree.dimension() << " - " << stree.num_simplices() - << " simplices - " << stree.num_vertices() << " vertices." << std::endl; -} |