stattestutils

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0, BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package stattestutils provides basic statistical utility functions.

This package is not optimized for performance or speed and is only intended to be used in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SampleMean

func SampleMean(values []float64) float64

SampleMean returns the mean of a slice, calculated as the average over the values in the slice.

func SampleVariance

func SampleVariance(values []float64) float64

SampleVariance returns the variance of a slice, calculated as the sum of sqaures of the distance to the mean of each of the values, divided by the number of values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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