Documentation
¶
Index ¶
- func Abs[N Number](n N) N
- func Bounds[N Number](vs ...N) (N, N)
- func Clamp[N Number](min, val, max N) N
- func EpsilonValue[T any]() T
- func GeometricMean[N Number](vs ...N) N
- func HarmonicMean[N Number](vs ...N) N
- func Max[N Number](vs ...N) N
- func MaxValue[T any]() T
- func Min[N Number](vs ...N) N
- func MinValue[T any]() T
- func One[T any]() T
- func Prod[N Number](vs ...N) N
- func Sign[N Number](n N) N
- func Sum[N Number](vs ...N) N
- func XenoSum[N Number](vs ...N) N
- type AggFunc
- type Aggregator
- type Number
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EpsilonValue ¶
func EpsilonValue[T any]() T
func GeometricMean ¶
func GeometricMean[N Number](vs ...N) N
func HarmonicMean ¶
func HarmonicMean[N Number](vs ...N) N
Types ¶
type AggFunc ¶
type AggFunc[TNum Number] func(ts ...TNum) TNum
func GetAgg ¶
func GetAgg[TNum Number](agg Aggregator) AggFunc[TNum]
type Aggregator ¶
type Aggregator string
const ( AggMax Aggregator = "Max" AggMin Aggregator = "Min" AggSum Aggregator = "Sum" AggAvg Aggregator = "Avg" AggProd Aggregator = "Prod" AggGeoMean Aggregator = "Geom" AggHarMean Aggregator = "Harm" AggXenoSum Aggregator = "Xeno" )
type Number ¶
type Number interface { constraints.Integer | constraints.Float }
Click to show internal directories.
Click to hide internal directories.