summaryrefslogtreecommitdiff
path: root/src/Rips_complex/example
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-02-05 08:45:01 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-02-05 08:45:01 +0000
commit6d759732282c4b79a4c93a0dbceb4667af2c8940 (patch)
treeff4eb4341e236c450546a3524c70bf2efd0c5117 /src/Rips_complex/example
parentbaa98e772b9d97d8b7c22fc8292f54b5047f0569 (diff)
clang format files
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/rips_complex_from_correlation_matrix@3216 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 09a40b92cc8e0cc1a08f962de14daed975338d1c
Diffstat (limited to 'src/Rips_complex/example')
-rw-r--r--src/Rips_complex/example/example_one_skeleton_rips_from_correlation_matrix.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Rips_complex/example/example_one_skeleton_rips_from_correlation_matrix.cpp b/src/Rips_complex/example/example_one_skeleton_rips_from_correlation_matrix.cpp
index d1ccbf31..0da1dc20 100644
--- a/src/Rips_complex/example/example_one_skeleton_rips_from_correlation_matrix.cpp
+++ b/src/Rips_complex/example/example_one_skeleton_rips_from_correlation_matrix.cpp
@@ -42,17 +42,16 @@ int main() {
}
//-----------------------------------------------------------------------------
- // Now the correlation matrix is a distance matrix and can be processed further.
+ // Now the correlation matrix is a distance matrix and can be processed further.
//-----------------------------------------------------------------------------
Distance_matrix distances = correlations;
//------------------------------------------------------------------------------
- //Note that this treshold mean that the points in the distance 1, i.e. corelation
- //0 will be connected.
+ // Note that this treshold mean that the points in the distance 1, i.e. corelation
+ // 0 will be connected.
//------------------------------------------------------------------------------
double threshold = 1.0;
-
-
+
Rips_complex rips_complex_from_points(distances, threshold);
Simplex_tree stree;
@@ -63,7 +62,7 @@ int main() {
// above, which is 1 - initial correlation matrix. Only this way, we obtain
// a complex with filtration. If a correlation matrix is used instead, we would
// have a reverse filtration (i.e. filtration of boundary of each simplex S
- // is greater or equal to the filtration of S).
+ // is greater or equal to the filtration of S).
// ----------------------------------------------------------------------------
std::cout << "Rips complex is of dimension " << stree.dimension() << " - " << stree.num_simplices() << " simplices - "
<< stree.num_vertices() << " vertices." << std::endl;