Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
Signed-off-by: Cabinfever_B <[email protected]>

address comment

Signed-off-by: Cabinfever_B <[email protected]>
  • Loading branch information
CabinfeverB committed Aug 11, 2023
1 parent b63c303 commit cbed3d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/movingaverage/median_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func (r *MedianFilter) GetInstantaneous() float64 {
return r.records[(r.count-1)%r.size]
}

// Clone returns a copy of MedianFilter
// Clone returns a copy of MedianFilter.
func (r *MedianFilter) Clone() *MedianFilter {
records := make([]float64, len(r.records))
copy(records, r.records)
Expand All @@ -227,7 +227,7 @@ func (r *MedianFilter) Clone() *MedianFilter {
}
}

// GetAll only used in test
// GetAll only used in test.
func (r *MedianFilter) GetAll() []float64 {
if r.count == 0 {
return nil
Expand Down

0 comments on commit cbed3d8

Please sign in to comment.