Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Mean ¶
func Mean[T constraints.Integer | constraints.Float](s []T) T
Mean returns the mean value in s.
func Median ¶
func Median[T constraints.Integer | constraints.Float](s []T) T
Median returns the median value in s. s must be sorted.
func Percentile ¶
func Percentile[T constraints.Integer | constraints.Float](s []T, p float64) T
Percentile returns the pth percentile value in s. s must be sorted.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.