summaryrefslogtreecommitdiff
path: root/src/Persistence_representations/example/persistence_weighted_gaussian.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Persistence_representations/example/persistence_weighted_gaussian.cpp')
-rw-r--r--src/Persistence_representations/example/persistence_weighted_gaussian.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Persistence_representations/example/persistence_weighted_gaussian.cpp b/src/Persistence_representations/example/persistence_weighted_gaussian.cpp
index d447f165..dea5dab6 100644
--- a/src/Persistence_representations/example/persistence_weighted_gaussian.cpp
+++ b/src/Persistence_representations/example/persistence_weighted_gaussian.cpp
@@ -91,8 +91,8 @@ int main(int argc, char** argv) {
PWG pwgex1(pd1, 2*std::sqrt(sigma), -1, PWG::pss_weight);
PWG pwgex2(pd2, 2*std::sqrt(sigma), -1, PWG::pss_weight);
- std::cout << "Approx PSS kernel: " << pwg1.compute_scalar_product (pwg2) / (16*pi*sigma) << std::endl;
- std::cout << "Exact PSS kernel: " << pwgex1.compute_scalar_product (pwgex2) / (16*pi*sigma) << std::endl;
+ std::cout << "Approx PSS kernel: " << pwg1.compute_scalar_product (pwg2) / (16*Gudhi::Persistence_representations::pi*sigma) << std::endl;
+ std::cout << "Exact PSS kernel: " << pwgex1.compute_scalar_product (pwgex2) / (16*Gudhi::Persistence_representations::pi*sigma) << std::endl;