math

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: MIT-0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Median

func Median[T Number](data []T) float64

Median calculates the median value of a list of numbers data. The input can be provided in unsorted form.

Types

type Number

type Number interface {
	constraints.Integer | constraints.Float
}

Number describes numeric data types that lend themselves to sorting and math to calculate the median.

Jump to

Keyboard shortcuts

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