diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-06-02 14:00:20 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-06-02 14:00:20 +0000 |
commit | 4ba017094d3246cd8fe917a6c45443ba25d74b1d (patch) | |
tree | 92de401a87ee26f96c211543340b08331d58df7f /src/Persistence_representations/utilities/persistence_heat_maps/create_p_h_m_weighted_by_arctan_of_their_persistence.cpp | |
parent | 3736caa9ed742f985d743b9c959442d331110050 (diff) |
Fix some cpplint
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/persistence_representation_integration@2502 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 0a6422b0fa27105b9aaba743371da3328d9039be
Diffstat (limited to 'src/Persistence_representations/utilities/persistence_heat_maps/create_p_h_m_weighted_by_arctan_of_their_persistence.cpp')
-rw-r--r-- | src/Persistence_representations/utilities/persistence_heat_maps/create_p_h_m_weighted_by_arctan_of_their_persistence.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Persistence_representations/utilities/persistence_heat_maps/create_p_h_m_weighted_by_arctan_of_their_persistence.cpp b/src/Persistence_representations/utilities/persistence_heat_maps/create_p_h_m_weighted_by_arctan_of_their_persistence.cpp index 68c75059..2bf185a3 100644 --- a/src/Persistence_representations/utilities/persistence_heat_maps/create_p_h_m_weighted_by_arctan_of_their_persistence.cpp +++ b/src/Persistence_representations/utilities/persistence_heat_maps/create_p_h_m_weighted_by_arctan_of_their_persistence.cpp @@ -22,14 +22,15 @@ #include <gudhi/Persistence_heat_maps.h> -using namespace Gudhi; -using namespace Gudhi::Persistence_representations; - #include <iostream> #include <sstream> #include <limits> #include <vector> +using arc_tan_of_persistence_of_point = Gudhi::Persistence_representations::arc_tan_of_persistence_of_point; +using Persistence_heat_maps = + Gudhi::Persistence_representations::Persistence_heat_maps<arc_tan_of_persistence_of_point>; + int main(int argc, char** argv) { std::cout << "This program creates persistence heat map of diagrams provided as an input. The Gaussian kernels are " "weighted by the arc tangential of their persistence.\n"; @@ -68,12 +69,11 @@ int main(int argc, char** argv) { } std::cout << "Creating persistence heat maps...\n"; - std::vector<std::vector<double> > filter = create_Gaussian_filter(stdiv, 1); + std::vector<std::vector<double> > filter = Gudhi::Persistence_representations::create_Gaussian_filter(stdiv, 1); for (size_t i = 0; i != filenames.size(); ++i) { std::cout << "Creating a heat map based on a file : " << filenames[i] << std::endl; - Persistence_heat_maps<arc_tan_of_persistence_of_point> l(filenames[i], filter, false, size_of_grid, min_, max_, - dimension); + Persistence_heat_maps l(filenames[i], filter, false, size_of_grid, min_, max_, dimension); std::stringstream ss; ss << filenames[i] << ".mps"; |