Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hist ¶
type Hist struct {
// contains filtered or unexported fields
}
Hist is a histogram.
func NewHist ¶
func NewHist[T comparable](bins uint) *Hist
NewHist creates a new histogram. bins is the number of bins in the histogram.
func NewLogHist ¶
func NewLogHist[T comparable](bins uint) *Hist
NewLogHist creates a new histogram with log10 bins. bins is the number of bins in the histogram.
func (*Hist) All ¶
All returns an iterator over the histogram. The iterator yields the bin value and the count.
Click to show internal directories.
Click to hide internal directories.