mathx

package
v1.10.36 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcEntropy

func CalcEntropy(m map[interface{}]int) float64

func MaxInt

func MaxInt(a, b int) int

func MinInt

func MinInt(a, b int) int

Types

type Proba

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

func NewProba

func NewProba() *Proba

func (*Proba) TrueOnProba

func (p *Proba) TrueOnProba(proba float64) (truth bool)

type Unstable

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

func NewUnstable

func NewUnstable(deviation float64) Unstable

func (Unstable) AroundDuration

func (u Unstable) AroundDuration(base time.Duration) time.Duration

func (Unstable) AroundInt

func (u Unstable) AroundInt(base int64) int64

Jump to

Keyboard shortcuts

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