stats

package
v0.9.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Z-distribution confidence values
	Z95 = 1.96
	Z98 = 2.326
	Z99 = 2.576
)
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) StandardError

func (s *Statistic) StandardError(m float64) float64

StandardError returns the standard error of the statistic, multiplied by a factor. i.e. if you pass in 1.96, that would be a 95% confidence interval, 2.58 is a 99% confidence interval. (see math for more details) 1 is just 68% or 1 stdev.

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