histogram

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Histogram

type Histogram struct {
	BinCount      int            `json:"binCount"`
	BinsFrequency map[string]int `json:"binsFrequency"`
}

func NewHistogram

func NewHistogram() Histogram

func (*Histogram) Add

func (h *Histogram) Add(bin string, count int)

func (*Histogram) Inflate

func (h *Histogram) Inflate()

type HistogramSet

type HistogramSet struct {
	Meta         HistogramSetMetadata `json:"meta,omitempty"`
	HistogramMap map[string]Histogram `json:"histograms"`
}

func NewHistogramSet

func NewHistogramSet() HistogramSet

func (*HistogramSet) Add

func (hs *HistogramSet) Add(name, bin string, count int)

func (*HistogramSet) Inflate

func (hs *HistogramSet) Inflate()

type HistogramSetMetadata

type HistogramSetMetadata struct {
	Names          []string `json:"names,omitempty"`
	NameCount      int      `json:"nameCount,omitempty"`
	UniqueBinCount int      `json:"uniqueBinCount,omitempty"`
}

func NewHistogramSetMetadata

func NewHistogramSetMetadata() HistogramSetMetadata

Jump to

Keyboard shortcuts

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