expotest

package
v0.114.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Empty = math.MaxUint64
)

Variables

This section is empty.

Functions

func Observe

func Observe(scale expo.Scale, pts ...float64) expo.Buckets

func Observe0

func Observe0(pts ...float64) expo.Buckets

func ObserveInto

func ObserveInto(bs expo.Buckets, scale expo.Scale, pts ...float64)

Types

type Bins

type Bins [8]uint64

index: 0 1 2 3 4 5 6 7 bucket: -3 -2 -1 0 1 2 3 4 bounds: (0.125,0.25], (0.25,0.5], (0.5,1], (1,2], (2,4], (4,8], (8,16], (16,32]

func (Bins) Into

func (bins Bins) Into() expo.Buckets

type Histogram

type Histogram struct {
	Ts pcommon.Timestamp

	Pos, Neg expo.Buckets
	PosNeg   expo.Buckets

	Scale int
	Count uint64
	Sum   *float64

	Min, Max *float64

	Zt float64
	Zc uint64
}

func (Histogram) Into

func (hist Histogram) Into() expo.DataPoint

Jump to

Keyboard shortcuts

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