summaryrefslogtreecommitdiff
path: root/src/Persistence_representations/include/gudhi/common_persistence_representations.h
diff options
context:
space:
mode:
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;