Skip to content

Commit

Permalink
remove zero padding from RMA
Browse files Browse the repository at this point in the history
  • Loading branch information
narumiruna committed Oct 24, 2023
1 parent 4f35f21 commit 3e5869c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/indicator/rma.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ func (inc *RMA) Update(x float64) {
}
inc.counter++

if inc.counter < inc.Window {
inc.Values.Push(0)
return
}

inc.Values.Push(inc.tmp)
if len(inc.Values) > MaxNumOfRMA {
inc.Values = inc.Values[MaxNumOfRMATruncateSize-1:]
Expand Down

0 comments on commit 3e5869c

Please sign in to comment.