Documentation ¶
Index ¶
- func Abs[T langext.NumberConstraint](v T) T
- func ArrMax[T langext.OrderedConstraint](v []T) T
- func ArrMin[T langext.OrderedConstraint](v []T) T
- func AvgFloat64(arr []float64) float64
- func Clamp[T langext.NumberConstraint](v T, min T, max T) T
- func ClampFloat32(v float32, lo float32, hi float32) float32
- func ClampFloat64(v float64, lo float64, hi float64) float64
- func ClampInt(v int, lo int, hi int) int
- func ClampInt32(v int32, lo int32, hi int32) int32
- func Float64EpsilonEq(v1 float64, v2 float64, eps float64) bool
- func FloatPercentile[T langext.NumberConstraint](rawdata []T, percentile float64) (float64, error)
- func Max[T langext.OrderedConstraint](v1 T, v2 T) T
- func Max3[T langext.OrderedConstraint](v1 T, v2 T, v3 T) T
- func Max4[T langext.OrderedConstraint](v1 T, v2 T, v3 T, v4 T) T
- func Mean[T langext.FloatConstraint](v []T) T
- func Median[T langext.FloatConstraint](v []T) T
- func Min[T langext.OrderedConstraint](v1 T, v2 T) T
- func Min3[T langext.OrderedConstraint](v1 T, v2 T, v3 T) T
- func Min4[T langext.OrderedConstraint](v1 T, v2 T, v3 T, v4 T) T
- func MustPercentile[T langext.NumberConstraint](rawdata []T, percentile float64) T
- func Percentile[T langext.NumberConstraint](rawdata []T, percentile float64) (T, error)
- func Sum[T langext.NumberConstraint](v []T) T
- func SumFloat64(arr []float64) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Abs ¶ added in v0.0.19
func Abs[T langext.NumberConstraint](v T) T
func ArrMax ¶ added in v0.0.6
func ArrMax[T langext.OrderedConstraint](v []T) T
func ArrMin ¶ added in v0.0.6
func ArrMin[T langext.OrderedConstraint](v []T) T
func AvgFloat64 ¶
func Clamp ¶ added in v0.0.19
func Clamp[T langext.NumberConstraint](v T, min T, max T) T
func FloatPercentile ¶ added in v0.0.482
func FloatPercentile[T langext.NumberConstraint](rawdata []T, percentile float64) (float64, error)
func Max ¶
func Max[T langext.OrderedConstraint](v1 T, v2 T) T
func Max3 ¶ added in v0.0.118
func Max3[T langext.OrderedConstraint](v1 T, v2 T, v3 T) T
func Max4 ¶ added in v0.0.118
func Max4[T langext.OrderedConstraint](v1 T, v2 T, v3 T, v4 T) T
func Mean ¶
func Mean[T langext.FloatConstraint](v []T) T
func Median ¶
func Median[T langext.FloatConstraint](v []T) T
func Min ¶
func Min[T langext.OrderedConstraint](v1 T, v2 T) T
func Min3 ¶ added in v0.0.118
func Min3[T langext.OrderedConstraint](v1 T, v2 T, v3 T) T
func Min4 ¶ added in v0.0.118
func Min4[T langext.OrderedConstraint](v1 T, v2 T, v3 T, v4 T) T
func MustPercentile ¶ added in v0.0.482
func MustPercentile[T langext.NumberConstraint](rawdata []T, percentile float64) T
func Percentile ¶ added in v0.0.482
func Percentile[T langext.NumberConstraint](rawdata []T, percentile float64) (T, error)
func Sum ¶
func Sum[T langext.NumberConstraint](v []T) T
func SumFloat64 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.