diff options
author | pdlotko <pdlotko@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-10-04 09:55:48 +0000 |
---|---|---|
committer | pdlotko <pdlotko@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-10-04 09:55:48 +0000 |
commit | bb5705be2727f9e614950255ef4ae29942bb2668 (patch) | |
tree | 1d225050e50a10f58e0bfa0530a20487a340e7bb /src/Gudhi_stat | |
parent | 8b1bcf1049ebb721df9a6b918b7ed1877885b3b4 (diff) |
hopefully I am adding now all the missing files....
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/gudhi_stat@1615 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 076a4a371bbb8277d0f97df97a10a1e6567addc2
Diffstat (limited to 'src/Gudhi_stat')
-rw-r--r-- | src/Gudhi_stat/example/CMakeLists.txt | 16 | ||||
-rwxr-xr-x | src/Gudhi_stat/example/utilities/persistence_landscapes/average_landscapes | bin | 99922 -> 99922 bytes | |||
-rwxr-xr-x | src/Gudhi_stat/example/utilities/persistence_landscapes/create_landscapes | bin | 99645 -> 99645 bytes | |||
-rwxr-xr-x | src/Gudhi_stat/example/utilities/persistence_landscapes/plot_landscapes | bin | 99584 -> 99584 bytes | |||
-rw-r--r-- | src/Gudhi_stat/include/gudhi/common.h | 39 |
5 files changed, 39 insertions, 16 deletions
diff --git a/src/Gudhi_stat/example/CMakeLists.txt b/src/Gudhi_stat/example/CMakeLists.txt index d963259c..5716ff31 100644 --- a/src/Gudhi_stat/example/CMakeLists.txt +++ b/src/Gudhi_stat/example/CMakeLists.txt @@ -116,20 +116,4 @@ add_executable ( utilities/persistence_vectors/plot_persistence_vectors utilitie target_link_libraries(utilities/persistence_vectors/plot_persistence_vectors ${Boost_SYSTEM_LIBRARY}) -#PSSK -#seems that this is not needed, since the only difference is the creation. The rest works the same as in the persitence heat maps. So, I have moved the creation of PSSK into the persitence heat maps folder, and use the methos from over there. -#add_executable ( utilities/PSSK/average_pssk utilities/PSSK/average_pssk.cpp ) -#target_link_libraries(utilities/PSSK/average_pssk ${Boost_SYSTEM_LIBRARY}) - -#add_executable ( utilities/PSSK/create_pssk utilities/PSSK/create_pssk.cpp ) -#target_link_libraries(utilities/PSSK/create_pssk ${Boost_SYSTEM_LIBRARY}) - -#add_executable ( utilities/PSSK/plot_pssk utilities/PSSK/plot_pssk.cpp ) -#target_link_libraries(utilities/PSSK/plot_pssk ${Boost_SYSTEM_LIBRARY}) - -#add_executable ( utilities/PSSK/compute_distance_of_pssk utilities/PSSK/compute_distance_of_pssk.cpp ) -#target_link_libraries(utilities/PSSK/compute_distance_of_pssk ${Boost_SYSTEM_LIBRARY}) - -add_executable ( utilities/PSSK/compute_scalar_product_of_pssk utilities/PSSK/compute_scalar_product_of_pssk.cpp ) -target_link_libraries(utilities/PSSK/compute_scalar_product_of_pssk ${Boost_SYSTEM_LIBRARY}) diff --git a/src/Gudhi_stat/example/utilities/persistence_landscapes/average_landscapes b/src/Gudhi_stat/example/utilities/persistence_landscapes/average_landscapes Binary files differindex b941b19a..b2a88191 100755 --- a/src/Gudhi_stat/example/utilities/persistence_landscapes/average_landscapes +++ b/src/Gudhi_stat/example/utilities/persistence_landscapes/average_landscapes diff --git a/src/Gudhi_stat/example/utilities/persistence_landscapes/create_landscapes b/src/Gudhi_stat/example/utilities/persistence_landscapes/create_landscapes Binary files differindex 3136aab1..6be64214 100755 --- a/src/Gudhi_stat/example/utilities/persistence_landscapes/create_landscapes +++ b/src/Gudhi_stat/example/utilities/persistence_landscapes/create_landscapes diff --git a/src/Gudhi_stat/example/utilities/persistence_landscapes/plot_landscapes b/src/Gudhi_stat/example/utilities/persistence_landscapes/plot_landscapes Binary files differindex 5e63470e..2352c96b 100755 --- a/src/Gudhi_stat/example/utilities/persistence_landscapes/plot_landscapes +++ b/src/Gudhi_stat/example/utilities/persistence_landscapes/plot_landscapes diff --git a/src/Gudhi_stat/include/gudhi/common.h b/src/Gudhi_stat/include/gudhi/common.h new file mode 100644 index 00000000..d573a92a --- /dev/null +++ b/src/Gudhi_stat/include/gudhi/common.h @@ -0,0 +1,39 @@ +/* This file is part of the Gudhi Library. The Gudhi library + * (Geometric Understanding in Higher Dimensions) is a generic C++ + * library for computational topology. + * + * Author(s): Pawel Dlotko + * + * Copyright (C) 2015 INRIA Sophia-Saclay (France) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#pragma once + //this file contain an implementation of some common procedures used in Gudhi_stat. + + //double epsi = std::numeric_limits<double>::epsilon(); +double epsi = 0.000005; + + +/** + * A procedure used to compare doubles. Typically gien two doubles A and B, comparing A == B is not good idea. In this case, we use the procedure almostEqual with the epsi defined at + * the top of the file. Setting up the epsi give the user a tolerance on what should be consider equal. +**/ +inline bool almost_equal( double a , double b ) +{ + if ( fabs(a-b) < epsi ) + return true; + return false; +} |