histogram

package
v0.0.0-...-511892e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketType

type BucketType interface {
	~string | ~int | ~int64
	constraints.Ordered
}

type Histogram

type Histogram[T BucketType] struct {
	// contains filtered or unexported fields
}

func New

func New[T BucketType](title string) *Histogram[T]

func (*Histogram[T]) Observe

func (h *Histogram[T]) Observe(bucket T)

func (*Histogram[T]) Print

func (h *Histogram[T]) Print(w io.Writer)

func (*Histogram[T]) ToCSV

func (h *Histogram[T]) ToCSV(filename string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL