11#ifndef PERSISTENCE_INTERVALS_WITH_DISTANCES_H_
12#define PERSISTENCE_INTERVALS_WITH_DISTANCES_H_
14#include <gudhi/Persistence_intervals.h>
15#include <gudhi/Bottleneck.h>
20namespace Persistence_representations {
36 double distance(
const Persistence_intervals_with_distances& second,
double power = std::numeric_limits<double>::max(),
37 double tolerance = (std::numeric_limits<double>::min)())
const {
38 if (power >= std::numeric_limits<double>::max()) {
41 std::cerr <<
"At the moment Gudhi do not support Wasserstein distances. We only support Bottleneck distance."
43 throw "At the moment Gudhi do not support Wasserstein distances. We only support Bottleneck distance.";
Definition: Persistence_intervals.h:37
Persistence_intervals(const char *filename, unsigned dimension=std::numeric_limits< unsigned >::max())
Definition: Persistence_intervals.h:252
double bottleneck_distance(const Persistence_diagram1 &diag1, const Persistence_diagram2 &diag2, double e=(std::numeric_limits< double >::min)())
Function to compute the Bottleneck distance between two persistence diagrams.
Definition: Bottleneck.h:116