stati

package
v1.15.3 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0, MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Covar

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

func (*Covar) A

func (cov1 *Covar) A() float64

func (*Covar) AddPoint

func (cov1 *Covar) AddPoint(x, y float64)

func (*Covar) B

func (cov1 *Covar) B() float64

func (*Covar) Combine

func (cov1 *Covar) Combine(cov2 *Covar)

func (*Covar) Correl

func (cov1 *Covar) Correl() float64

func (*Covar) Covariance

func (cov1 *Covar) Covariance() float64

func (*Covar) MeanX

func (cov1 *Covar) MeanX() float64

func (*Covar) MeanY

func (cov1 *Covar) MeanY() float64

func (*Covar) N

func (cov1 *Covar) N() float64

func (*Covar) StddevX

func (cov1 *Covar) StddevX() float64

func (*Covar) StddevY

func (cov1 *Covar) StddevY() float64

func (*Covar) VarianceX

func (cov1 *Covar) VarianceX() float64

func (*Covar) VarianceY

func (cov1 *Covar) VarianceY() float64

type Histogram

type Histogram struct {
	Buckets []float64
	Counts  []uint64
}

func NewHistogram

func NewHistogram(buckets []float64) (*Histogram, error)

NewHistogram creates a histograme with buckets defined as: {x > -Inf, x >= buckets[0], x >= buckets[1], ..., x >= buckets[i]}

func (*Histogram) Get

func (h *Histogram) Get(i int) uint64

func (*Histogram) GetRatio

func (h *Histogram) GetRatio(i int) float64

func (*Histogram) Observe

func (h *Histogram) Observe(x float64)

func (*Histogram) Total

func (h *Histogram) Total() uint64

type MeanVar

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

func (*MeanVar) AddPoint

func (v1 *MeanVar) AddPoint(value float64)

func (*MeanVar) Combine

func (v1 *MeanVar) Combine(v2 *MeanVar)

func (*MeanVar) Mean

func (v1 *MeanVar) Mean() float64

func (*MeanVar) N

func (v1 *MeanVar) N() float64

func (*MeanVar) Stddev

func (v1 *MeanVar) Stddev() float64

func (MeanVar) String

func (v1 MeanVar) String() string

func (*MeanVar) Variance

func (v1 *MeanVar) Variance() float64

Jump to

Keyboard shortcuts

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