gotdigest

package module
v0.0.0-...-66decb3 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Centroid

type Centroid struct {
	Size int
	Mean float64
}

func NewCentroidWithValue

func NewCentroidWithValue(val float64) Centroid

type TDigest

type TDigest struct {
	Centroids []Centroid
	// contains filtered or unexported fields
}

func FromMsgPack

func FromMsgPack(b []byte) (TDigest, error)

func NewDigest

func NewDigest(delta float64, shouldBuffer bool, bufferMax int, useNormalized bool) TDigest

func NewDigestFromBin

func NewDigestFromBin(bin Centroid) TDigest

func NewDigestFromValues

func NewDigestFromValues(vals ...float64) TDigest

func (*TDigest) ToMsgPack

func (d *TDigest) ToMsgPack() ([]byte, error)

Jump to

Keyboard shortcuts

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