23 #ifndef PERSISTENCE_INTERVALS_WITH_DISTANCES_H_ 24 #define PERSISTENCE_INTERVALS_WITH_DISTANCES_H_ 26 #include <gudhi/Persistence_intervals.h> 27 #include <gudhi/Bottleneck.h> 32 namespace Persistence_representations {
48 double distance(
const Persistence_intervals_with_distances& second,
double power = std::numeric_limits<double>::max(),
49 double tolerance = (std::numeric_limits<double>::min)())
const {
50 if (power >= std::numeric_limits<double>::max()) {
53 std::cerr <<
"At the moment Gudhi do not support Wasserstein distances. We only support Bottleneck distance." 55 throw "At the moment Gudhi do not support Wasserstein distances. We only support Bottleneck distance.";
63 #endif // PERSISTENCE_INTERVALS_WITH_DISTANCES_H_ Definition: SimplicialComplexForAlpha.h:26
Persistence_intervals(const char *filename, unsigned dimension=std::numeric_limits< unsigned >::max())
Definition: Persistence_intervals.h:262
Definition: Persistence_intervals.h:47
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:103