stats

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Z-distribution confidence values
	Z90  = 1.645
	Z95  = 1.96
	Z98  = 2.326
	Z99  = 2.576
	Z999 = 3.291 // 99.9%
)
View Source
const (
	Epsilon = 1e-6
)

Variables

This section is empty.

Functions

func FuzzyEqual added in v0.8.7

func FuzzyEqual(a, b float64) bool

Types

type Statistic

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

Statistic contains statistics per move

func (*Statistic) Iterations

func (s *Statistic) Iterations() int

func (*Statistic) Last

func (s *Statistic) Last() float64

func (*Statistic) Mean

func (s *Statistic) Mean() float64

func (*Statistic) Push

func (s *Statistic) Push(val float64)

func (*Statistic) Reset added in v0.9.4

func (a *Statistic) Reset()

func (*Statistic) StandardError

func (s *Statistic) StandardError() float64

StandardError returns the standard error of the statistic.

func (*Statistic) Stdev

func (s *Statistic) Stdev() float64

func (*Statistic) Variance

func (s *Statistic) Variance() float64

Jump to

Keyboard shortcuts

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