Back to godoc.org
github.com/OGFris/GoStats

Package GoStats

v0.0.0-...-5f3546f
Latest Go to latest

The highest tagged major version is .

Published: Jan 14, 2019 | License: MIT | Module: github.com/OGFris/GoStats

Index

Constants

const (
	// MaxFloat64 is the biggest number that can be used in Go using the float64 type.
	MaxFloat64 = math.MaxFloat64
	// MinFloat64 is the smallest number that can be used in Go using the float64 type.
	MinFloat64 = -(MaxFloat64)
)

func Max

func Max(numbers []float64) (iMax int, max float64)

Max is to get the biggest number of the float64 numbers.

func Mean

func Mean(numbers []float64) float64

Mean of the float64 numbers.

func Median

func Median(numbers []float64, sort bool) float64

Median of the float64 numbers.

func Min

func Min(numbers []float64) (iMin int, min float64)

Min is to get the smallest number of the float64 numbers.

func Mode

func Mode(numbers []float64) (mode float64, r int)

Mode the float64 numbers.

func Range

func Range(numbers []float64) float64

Range of the float64 numbers.

func Repeats

func Repeats(numbers []float64) (r map[float64]int)

Repeats of the float64 numbers.

func Singular

func Singular(number float64) bool

Singular is to get whether a number is singular or not.

func Sort

func Sort(numbers []float64) []float64

Sort the []float64.

func StandardDeviation

func StandardDeviation(numbers []float64) float64

StandardDeviation of the float64 numbers.

func Total

func Total(numbers []float64) (total float64)

Total of the float64 numbers.

func Variance

func Variance(numbers []float64) (variance float64)

Variance of the float64 numbers.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier