Documentation ¶
Index ¶
- func LogSoftmax[T constraints.Float](x ...T) []T
- func Max[T constraints.Ordered](x ...T) T
- func MaxAny[T any](less func(a, b T) bool, x ...T) T
- func MaxTimes(x ...time.Time) time.Time
- func Mean[T constraints.Integer | constraints.Float](x []T) float64
- func Min[T constraints.Ordered](x ...T) T
- func MinAny[T any](less func(a, b T) bool, x ...T) T
- func MinTimes(x ...time.Time) time.Time
- func Reduce[E any, R any](x []E, init R, next func(result R, elem E) R) R
- func Softmax[T constraints.Float](x ...T) []T
- func Sum[T constraints.Integer | constraints.Float](x []T) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Mean ¶
func Mean[T constraints.Integer | constraints.Float](x []T) float64
Mean return float64, default 0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.