Documentation ¶
Index ¶
- func Add(dst, s []float32)
- func AddTo(a, b, dst []float32)
- func Div(dst, s []float32)
- func Dot(a, b []float32) (ret float32)
- func MatZero(x [][]float32)
- func Max(x []float32) float32
- func Mean(x []float32) float32
- func MeanVariance(x []float32) (mean, variance float32)
- func Min(x []float32) float32
- func Mul(dst, s []float32)
- func MulConst(dst []float32, c float32)
- func MulConstAddTo(a []float32, c float32, dst []float32)
- func MulConstTo(a []float32, c float32, dst []float32)
- func StdDev(x []float32) float32
- func Sub(dst, s []float32)
- func SubTo(a, b, dst []float32)
- func Sum(x []float32) float32
- func Zero(a []float32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTo ¶
func AddTo(a, b, dst []float32)
AddTo adds two vectors and saves the result in dst: dst = a + b
func MeanVariance ¶
MeanVariance computes the sample mean and unbiased variance, where the mean and variance are
\sum_i w_i * x_i / (sum_i w_i) \sum_i w_i (x_i - mean)^2 / (sum_i w_i - 1)
respectively. If weights is nil then all of the weights are 1. If weights is not nil, then len(x) must equal len(weights). When weights sum to 1 or less, a biased variance estimator should be used.
func MulConstAddTo ¶
MulConstAddTo multiplies a vector and a const, then adds to dst: dst = dst + a * c
func MulConstTo ¶
MulConstTo multiplies a vector and a const, then saves the result in dst: dst = a * c
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.