summaryrefslogtreecommitdiff
path: root/src/Persistence_representations/include/gudhi/common_persistence_representations.h
diff options
context:
space:
mode:
authormcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-09-18 20:48:24 +0000
committermcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-09-18 20:48:24 +0000
commit8f9e4f64a2df82205a3a4551e0443b9e2a45edae (patch)
treebb6d3f365a496bac16a504316356e814642054cb /src/Persistence_representations/include/gudhi/common_persistence_representations.h
parentce07cbf7aef1e94694f3677ae356c9c548466b5a (diff)
templated Kernel parameter in Persistence heat maps
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/kernels@3896 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: b496194cbe5447fe040140e9fbef3beb39fd9fbc
Diffstat (limited to 'src/Persistence_representations/include/gudhi/common_persistence_representations.h')
-rw-r--r--src/Persistence_representations/include/gudhi/common_persistence_representations.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/Persistence_representations/include/gudhi/common_persistence_representations.h b/src/Persistence_representations/include/gudhi/common_persistence_representations.h
index a51fcfe5..6fed019a 100644
--- a/src/Persistence_representations/include/gudhi/common_persistence_representations.h
+++ b/src/Persistence_representations/include/gudhi/common_persistence_representations.h
@@ -42,20 +42,6 @@ static constexpr double pi = boost::math::constants::pi<double>();
*/
using Persistence_diagram = std::vector<std::pair<double, double> >;
-/**
- * In this module, we use the name Kernel2D for the representation of a function taking a pair of two points in the plane and returning a double.
- */
-using Kernel2D = std::function<double (std::pair<double, double>, std::pair<double, double> )>;
-
-inline Kernel2D Gaussian_kernel(double sigma){
- return [=](std::pair<double, double> p, std::pair<double, double> q){return (1.0 / (std::sqrt(2*pi)*sigma)) * std::exp( -((p.first-q.first)*(p.first-q.first) + (p.second-q.second)*(p.second-q.second)) / (2*sigma*sigma) );};
-}
-
-inline Kernel2D polynomial_kernel(double c, double d){
- return [=](std::pair<double, double> p, std::pair<double, double> q){return std::pow( p.first*q.first + p.second*q.second + c, d);};
-}
-
-
// double epsi = std::numeric_limits<double>::epsilon();
double epsi = 0.000005;