summaryrefslogtreecommitdiff
path: root/src/common/include/gudhi/reader_utils.h
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-07-04 13:37:29 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-07-04 13:37:29 +0000
commita4b7d528893f992115711225c7d4396de55c6c58 (patch)
tree1a1a74894b72bcc337e8517500242ff8c480c082 /src/common/include/gudhi/reader_utils.h
parent8396cb5786d9a4d15086fedb3a17b56c62fd8e7d (diff)
Add Gudhi namespace for reader_utils
Add confidence band in persistence_graphical_tools.py Persistence_diagram returns a plot that is no more showed. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/persistence_diagram_improvement@2582 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 4125f4f525057e89c8b0d5d164ea0b9d1df1bd72
Diffstat (limited to 'src/common/include/gudhi/reader_utils.h')
-rw-r--r--src/common/include/gudhi/reader_utils.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/common/include/gudhi/reader_utils.h b/src/common/include/gudhi/reader_utils.h
index f1684d78..8e99acfc 100644
--- a/src/common/include/gudhi/reader_utils.h
+++ b/src/common/include/gudhi/reader_utils.h
@@ -37,6 +37,8 @@
#include <vector>
#include <utility> // for pair
+namespace Gudhi {
+
// Keep this file tag for Doxygen to parse the code, otherwise, functions are not documented.
// It is required for global functions and variables.
@@ -331,7 +333,7 @@ void read_persistence_intervals_and_dimension(std::string const& filename, Outpu
}
}
}
-} // read_persistence_diagram_from_file
+} // read_persistence_diagram_from_file
/**
Reads a file containing persistence intervals.
@@ -347,7 +349,7 @@ inline std::map<int, std::vector<std::pair<double, double>>> read_persistence_in
filename,
boost::make_function_output_iterator([&ret](std::tuple<int, double, double> t) { ret[get<0>(t)].push_back(std::make_pair(get<1>(t), get<2>(t))); }));
return ret;
-} // read_persistence_diagram_from_file
+} // read_persistence_diagram_from_file
/**
@@ -367,6 +369,8 @@ inline std::vector<std::pair<double, double>> read_persistence_intervals_in_dime
filename,
boost::make_function_output_iterator([&ret](std::tuple<int, double, double> t) { ret.emplace_back(get<1>(t), get<2>(t)); }));
return ret;
-} // read_persistence_diagram_from_file
+} // read_persistence_diagram_from_file
+
+} // namespace Gudhi
#endif // READER_UTILS_H_