diff options
Diffstat (limited to 'src/Persistence_representations/example')
-rw-r--r-- | src/Persistence_representations/example/persistence_heat_maps.cpp | 2 | ||||
-rw-r--r-- | src/Persistence_representations/example/sliced_wasserstein.cpp | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/Persistence_representations/example/persistence_heat_maps.cpp b/src/Persistence_representations/example/persistence_heat_maps.cpp index f1791e97..5874336e 100644 --- a/src/Persistence_representations/example/persistence_heat_maps.cpp +++ b/src/Persistence_representations/example/persistence_heat_maps.cpp @@ -77,7 +77,7 @@ int main(int argc, char** argv) { // to compute scalar product of hm1 and hm2: std::cout << "Scalar product is : " << hm1.compute_scalar_product(hm2) << std::endl; - Gudhi::Persistence_representations::Kernel k = Gudhi::Persistence_representations::Gaussian_kernel(1.0); + Gudhi::Persistence_representations::Kernel2D k = Gudhi::Persistence_representations::Gaussian_kernel(1.0); Persistence_heat_maps hm1k(persistence1, k); Persistence_heat_maps hm2k(persistence2, k); diff --git a/src/Persistence_representations/example/sliced_wasserstein.cpp b/src/Persistence_representations/example/sliced_wasserstein.cpp index 2104e2b2..089172a0 100644 --- a/src/Persistence_representations/example/sliced_wasserstein.cpp +++ b/src/Persistence_representations/example/sliced_wasserstein.cpp @@ -50,8 +50,6 @@ int main(int argc, char** argv) { SW swex1(persistence1, 1, -1); SW swex2(persistence2, 1, -1); - std::cout << "Approx SW distance: " << sw1.compute_sliced_wasserstein_distance(sw2) << std::endl; - std::cout << "Exact SW distance: " << swex1.compute_sliced_wasserstein_distance(swex2) << std::endl; std::cout << "Approx SW kernel: " << sw1.compute_scalar_product(sw2) << std::endl; std::cout << "Exact SW kernel: " << swex1.compute_scalar_product(swex2) << std::endl; std::cout << "Distance induced by approx SW kernel: " << sw1.distance(sw2) << std::endl; |