GoStats: github.com/OGFris/GoStats Index | Files

package GoStats

import "github.com/OGFris/GoStats"

Index

Package Files

GoStats.go

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 Uses

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

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

func Mean Uses

func Mean(numbers []float64) float64

Mean of the float64 numbers.

func Median Uses

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

Median of the float64 numbers.

func Min Uses

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

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

func Mode Uses

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

Mode the float64 numbers.

func Range Uses

func Range(numbers []float64) float64

Range of the float64 numbers.

func Repeats Uses

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

Repeats of the float64 numbers.

func Singular Uses

func Singular(number float64) bool

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

func Sort Uses

func Sort(numbers []float64) []float64

Sort the []float64.

func StandardDeviation Uses

func StandardDeviation(numbers []float64) float64

StandardDeviation of the float64 numbers.

func Total Uses

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

Total of the float64 numbers.

func Variance Uses

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

Variance of the float64 numbers.

Package GoStats imports 2 packages (graph). Updated 2019-01-14. Refresh now. Tools for package owners.