Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sgreben committed Sep 19, 2024
1 parent a65cf99 commit 4b23add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sliding/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func WithDecayLUTSize(n int) Option {
// WithBucketHistoryLength sets the number of old counters to keep per bucket.
//
// This parameter primarily affects the precision of the [Sketch.Tick] method:
// - The sliding window is accurate (modul counter error) if there as many counters as there are ticks in the window.
// - The sliding window is accurate (modulo counter error) if there as many counters as there are ticks in the window.
// - If there are fewer old counters, the counts of several ticks are collected in one counter, resulting in imprecise aging.
func WithBucketHistoryLength(n int) Option {
return func(s *Sketch) { s.BucketHistoryLength = n }
Expand Down

0 comments on commit 4b23add

Please sign in to comment.