From a38d5f4cfc7e8faafe85c66f2a77621f02814666 Mon Sep 17 00:00:00 2001 From: m5l14i11 Date: Mon, 22 Apr 2024 23:51:27 +0300 Subject: [PATCH] upd --- ta_lib/core/src/smoothing.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ta_lib/core/src/smoothing.rs b/ta_lib/core/src/smoothing.rs index 0e0f7989..974e77f1 100644 --- a/ta_lib/core/src/smoothing.rs +++ b/ta_lib/core/src/smoothing.rs @@ -21,11 +21,7 @@ impl Series { for _ in 0..len { let prev = sum.shift(1); - sum = iff!( - prev.na(), - seed, - alpha * self + (1. - alpha) * nz!(prev, sum) - ) + sum = iff!(prev.na(), seed, alpha * self + (1. - alpha) * prev) } sum