mathutil

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Avg

func Avg[V constraints.Integer](arr ...V) (V, error)

func Max

func Max[V constraints.Ordered](first V, vals ...V) V

func Median

func Median[V constraints.Integer](arr ...V) (V, error)

Median mirrors implementation with generics: https://github.com/montanaflynn/stats/blob/249b5aaa10484bb7e8f3b866b0925aaebdac8170/median.go#L6

func Min

func Min[V constraints.Ordered](first V, vals ...V) V

Types

This section is empty.

Jump to

Keyboard shortcuts

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