Documentation ¶
Index ¶
- type Histogram
- func (h *Histogram[T]) Add(v T)
- func (h *Histogram[T]) Average() float64
- func (h *Histogram[T]) Clone() *Histogram[T]
- func (h *Histogram[T]) CloneAndReset() *Histogram[T]
- func (h *Histogram[T]) Median() T
- func (h *Histogram[T]) Merge(other *Histogram[T]) error
- func (h *Histogram[T]) Reset()
- func (h *Histogram[T]) Reshape(htype Type, base T, buckets int)
- func (h *Histogram[T]) String() string
- type Log2
- type SyncHistogram
- func (h *SyncHistogram[T]) Add(v T)
- func (h *SyncHistogram[T]) Average() float64
- func (h *SyncHistogram[T]) Clone() *SyncHistogram[T]
- func (h *SyncHistogram[T]) CloneAndReset() *SyncHistogram[T]
- func (h *SyncHistogram[T]) Median() T
- func (h *SyncHistogram[T]) Merge(other *SyncHistogram[T]) error
- func (h *SyncHistogram[T]) Reset()
- func (h *SyncHistogram[T]) Reshape(htype Type, base T, buckets int)
- func (h *SyncHistogram[T]) String() string
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Histogram ¶
type Histogram[T hvals] struct { Buckets []uint64 `json:"buckets"` // slot -> count Min T `json:"min"` Max T `json:"max"` Sum float64 `json:"sum"` Count uint64 `json:"count"` // contains filtered or unexported fields }
func NewExponential ¶
func (*Histogram[T]) CloneAndReset ¶
type SyncHistogram ¶
type SyncHistogram[T hvals] struct { Buckets []uint64 `json:"buckets"` // slot -> count Min T `json:"min"` Max T `json:"max"` Sum float64 `json:"sum"` Count uint64 `json:"count"` // contains filtered or unexported fields }
func NewSync ¶
func NewSync[T hvals](htype Type, base T, buckets int) *SyncHistogram[T]
func (*SyncHistogram[T]) Add ¶
func (h *SyncHistogram[T]) Add(v T)
func (*SyncHistogram[T]) Average ¶
func (h *SyncHistogram[T]) Average() float64
func (*SyncHistogram[T]) Clone ¶
func (h *SyncHistogram[T]) Clone() *SyncHistogram[T]
func (*SyncHistogram[T]) CloneAndReset ¶
func (h *SyncHistogram[T]) CloneAndReset() *SyncHistogram[T]
func (*SyncHistogram[T]) Median ¶
func (h *SyncHistogram[T]) Median() T
func (*SyncHistogram[T]) Merge ¶
func (h *SyncHistogram[T]) Merge(other *SyncHistogram[T]) error
func (*SyncHistogram[T]) Reset ¶
func (h *SyncHistogram[T]) Reset()
func (*SyncHistogram[T]) Reshape ¶
func (h *SyncHistogram[T]) Reshape(htype Type, base T, buckets int)
func (*SyncHistogram[T]) String ¶
func (h *SyncHistogram[T]) String() string
Click to show internal directories.
Click to hide internal directories.