|
@@ -535,6 +535,7 @@ func newExpDecaySampleHeap(reservoirSize int) *expDecaySampleHeap {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// expDecaySampleHeap is a min-heap of expDecaySamples.
|
|
// expDecaySampleHeap is a min-heap of expDecaySamples.
|
|
|
|
|
+// The internal implementation is copied from the standard library's container/heap
|
|
|
type expDecaySampleHeap struct {
|
|
type expDecaySampleHeap struct {
|
|
|
s []expDecaySample
|
|
s []expDecaySample
|
|
|
}
|
|
}
|