From d426640bb2c0af388a9632e7c918de54cbee72ed Mon Sep 17 00:00:00 2001 From: SpatLyu Date: Sat, 24 Oct 2026 00:00:01 +0800 Subject: [PATCH 1/4] add note in pattern causality --- inst/include/pc/symdync.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inst/include/pc/symdync.hpp b/inst/include/pc/symdync.hpp index 1971f55..d926e4e 100644 --- a/inst/include/pc/symdync.hpp +++ b/inst/include/pc/symdync.hpp @@ -577,7 +577,8 @@ namespace symdync /* --- strength --- */ double strength = 0.0; if (causality_exit) - { + { + // Evaluates the predictive power of x over y strength = weighted ? std::erf( norm_ignore_nan(pred_SMy[t]) / From 9a05ebc12702d572733d20d4e5507f62f8356753 Mon Sep 17 00:00:00 2001 From: SpatLyu Date: Sat, 24 Oct 2026 00:00:01 +0800 Subject: [PATCH 2/4] add note in pattern causality --- inst/include/pc/symdync.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inst/include/pc/symdync.hpp b/inst/include/pc/symdync.hpp index d926e4e..6439541 100644 --- a/inst/include/pc/symdync.hpp +++ b/inst/include/pc/symdync.hpp @@ -584,6 +584,12 @@ namespace symdync norm_ignore_nan(pred_SMy[t]) / (norm_ignore_nan(SMx[t]) + 1e-6)) : 1.0; + + strength = weighted + ? std::erf( + norm_ignore_nan(pred_SMy[t]) / + (norm_ignore_nan(SMy[t]) + 1e-6)) + : 1.0; } /* --- index lookup --- */ From 8aa004f99dc1bf26a1809f1f97b3fb47bc42bd4c Mon Sep 17 00:00:00 2001 From: SpatLyu Date: Sat, 24 Oct 2026 00:00:01 +0800 Subject: [PATCH 3/4] add note in pattern causality --- inst/include/pc/symdync.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inst/include/pc/symdync.hpp b/inst/include/pc/symdync.hpp index 6439541..82f2b54 100644 --- a/inst/include/pc/symdync.hpp +++ b/inst/include/pc/symdync.hpp @@ -584,7 +584,8 @@ namespace symdync norm_ignore_nan(pred_SMy[t]) / (norm_ignore_nan(SMx[t]) + 1e-6)) : 1.0; - + + // Evaluates the cross-mapping fidelity from x to y (x xmap y) strength = weighted ? std::erf( norm_ignore_nan(pred_SMy[t]) / From 832843cece10b9bb0014c162e37bbf9a3a995e0d Mon Sep 17 00:00:00 2001 From: SpatLyu Date: Sat, 24 Oct 2026 00:00:01 +0800 Subject: [PATCH 4/4] add note in pattern causality --- inst/include/pc/symdync.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/inst/include/pc/symdync.hpp b/inst/include/pc/symdync.hpp index 82f2b54..8671094 100644 --- a/inst/include/pc/symdync.hpp +++ b/inst/include/pc/symdync.hpp @@ -578,19 +578,19 @@ namespace symdync double strength = 0.0; if (causality_exit) { - // Evaluates the predictive power of x over y + // Evaluates the predictive power of x over y (x predicts y) strength = weighted ? std::erf( norm_ignore_nan(pred_SMy[t]) / (norm_ignore_nan(SMx[t]) + 1e-6)) : 1.0; - // Evaluates the cross-mapping fidelity from x to y (x xmap y) - strength = weighted - ? std::erf( - norm_ignore_nan(pred_SMy[t]) / - (norm_ignore_nan(SMy[t]) + 1e-6)) - : 1.0; + // // Evaluates the cross-mapping fidelity from x to y (x xmap y) + // strength = weighted + // ? std::erf( + // norm_ignore_nan(pred_SMy[t]) / + // (norm_ignore_nan(SMy[t]) + 1e-6)) + // : 1.0; } /* --- index lookup --- */