stats

package
v0.0.0-...-40008dc Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MeanFloat

func MeanFloat(slice []float64) float64

MeanFloat calculates the mean of a []float64

func MeanInt

func MeanInt(slice []int) float64

MeanInt calculates the mean of a []int

func MedianFloat

func MedianFloat(inputSlice []float64) float64

MedianFloat calculates the median of a []float64

func MedianInt

func MedianInt(inputSlice []int) float64

MedianInt calculates the median of a []int

func Occurrence

func Occurrence(slice []string) map[string]int

Occurrence counts the number of times a string occurs in a slice.

func SDFloat

func SDFloat(slice []float64) float64

SDFloat calculates the standard deviation of []float64.

func SDInt

func SDInt(slice []int) float64

SDInt calculates the standard deviation of []int.

Types

This section is empty.

Jump to

Keyboard shortcuts

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