Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
m5l14i11 committed Apr 22, 2024
1 parent d2b0ea3 commit a38d5f4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ta_lib/core/src/smoothing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ impl Series<f32> {
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
Expand Down

0 comments on commit a38d5f4

Please sign in to comment.