From b562cc5abf03f388da9b59ab956d82383aec1807 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 25 Mar 2025 17:26:48 +0100 Subject: [PATCH] fix(qav3): clipping is enough in FRAMA MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- quickadapter/user_data/strategies/Utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickadapter/user_data/strategies/Utils.py b/quickadapter/user_data/strategies/Utils.py index 7b48dd0..5b4a4d5 100644 --- a/quickadapter/user_data/strategies/Utils.py +++ b/quickadapter/user_data/strategies/Utils.py @@ -164,7 +164,7 @@ def _fractal_dimension(high: np.ndarray, low: np.ndarray, period: int) -> float: if (HL1 + HL2) == 0 or HL3 == 0: return 1.0 - D = (np.log(HL1 + HL2) - np.log(HL3)) / np.log(2) + 1 + D = (np.log(HL1 + HL2) - np.log(HL3)) / np.log(2) return np.clip(D, 1.0, 2.0) -- 2.43.0