statistics

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package statistics provides helper to work with statistics.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptySlice = errors.New("statistics: slice is empty")
)

Functions

func Average

func Average(numbers ...float64) (float64, error)

Average returns the mean of numbers.

func DeviationFromMean

func DeviationFromMean(numbers ...float64) map[float64]float64

DeviationFromMean returns the deviation from mean for numbers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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