histogram

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 4 Imported by: 19 modules, 23 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

GoDoc Go Report

histogram

Fast histograms for Go.

See docs.

Documentation

Overview

Package histogram provides building blocks for fast histograms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PutFast

func PutFast(f *Fast)

PutFast puts hf to the pool.

hf cannot be used after this call.

Types

type Fast

type Fast struct {
	// contains filtered or unexported fields
}

Fast is a fast histogram.

It cannot be used from concurrently running goroutines without external synchronization.

func GetFast

func GetFast() *Fast

GetFast returns a histogram from a pool.

func NewFast added in v1.0.1

func NewFast() *Fast

NewFast returns new fast histogram.

func (*Fast) Quantile

func (f *Fast) Quantile(phi float64) float64

Quantile returns the quantile value for the given phi.

func (*Fast) Quantiles

func (f *Fast) Quantiles(dst, phis []float64) []float64

Quantiles appends quantile values to dst for the given phis.

func (*Fast) Reset

func (f *Fast) Reset()

Reset resets the histogram.

func (*Fast) Update

func (f *Fast) Update(v float64)

Update updates the f with v.

Jump to

Keyboard shortcuts

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