summaryrefslogtreecommitdiff
path: root/src/Persistence_representations/test/vector_representation_test.cpp
diff options
context:
space:
mode:
authorpdlotko <pdlotko@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-08-14 19:43:45 +0000
committerpdlotko <pdlotko@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-08-14 19:43:45 +0000
commite2c0166fcbf17e91cf5ed7b6159f80d64b49cc0b (patch)
tree8b406841de67ed77647a9c4153bbb88dee90a60a /src/Persistence_representations/test/vector_representation_test.cpp
parent871bf8d781f88536942a92f9003509eaaa4e2e12 (diff)
Adding a code that use Clement's procedure to read files. Correcting some samll errors. Now the code is ready.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/persistence_representation_integration@2610 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: b2947d1c484d661eca6c32fe5386461e741b76f9
Diffstat (limited to 'src/Persistence_representations/test/vector_representation_test.cpp')
-rw-r--r--src/Persistence_representations/test/vector_representation_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Persistence_representations/test/vector_representation_test.cpp b/src/Persistence_representations/test/vector_representation_test.cpp
index 5a29c109..3f3e2abe 100644
--- a/src/Persistence_representations/test/vector_representation_test.cpp
+++ b/src/Persistence_representations/test/vector_representation_test.cpp
@@ -22,6 +22,7 @@
#include <gudhi/Persistence_vectors.h>
#include <gudhi/common_persistence_representations.h>
+#include <gudhi/read_persistence_from_file.h>
#include <iostream>
#define BOOST_TEST_DYN_LINK
@@ -295,11 +296,11 @@ BOOST_AUTO_TEST_CASE(check_distance_computations) {
BOOST_AUTO_TEST_CASE(check_default_parameters_of_distances) {
std::vector<std::pair<double, double> > diag =
- read_persistence_intervals_in_one_dimension_from_file("data/file_with_diagram");
+ read_persistence_intervals_in_dimension("data/file_with_diagram");
Vector_distances_in_diagram<Euclidean_distance> p(diag, 100);
std::vector<std::pair<double, double> > diag1 =
- read_persistence_intervals_in_one_dimension_from_file("data/file_with_diagram_1");
+ read_persistence_intervals_in_dimension("data/file_with_diagram_1");
Vector_distances_in_diagram<Euclidean_distance> q(diag1, 100);
double dist_numeric_limit_max = p.distance(q, std::numeric_limits<double>::max());