Documentation
¶
Index ¶
- func Abs[N compare.Number](n N) N
- func BitAND[I compare.Integer](a []I) (i I)
- func BitOR[I compare.Integer](vector []I) (i I)
- func BitXOR[I compare.Integer](a []I) (i I)
- func CastByte[N compare.Number](n N) byte
- func CastFloat32[N compare.Number](n N) float32
- func CastFloat64[N compare.Number](n N) float64
- func CastInt[N compare.Number](n N) int
- func CastInt16[N compare.Number](n N) int16
- func CastInt32[N compare.Number](n N) int32
- func CastInt64[N compare.Number](n N) int64
- func CastInt8[N compare.Number](n N) int8
- func CastUInt[N compare.Number](n N) uint
- func CastUInt16[N compare.Number](n N) uint16
- func CastUInt32[N compare.Number](n N) uint32
- func CastUInt64[N compare.Number](n N) uint64
- func CastUInt8[N compare.Number](n N) uint8
- func Corr[N compare.Number](x []N, y []N) float64
- func Cov[N compare.Number](x []N, y []N) float64
- func FTest[N compare.Number](x []N, y []N) float64
- func GCD[I compare.Integer](vector ...I) (gcd I)
- func LCM[I compare.Integer](a, b I, vector ...I) I
- func LinReg[N compare.Number](x []N, y []N) (intercept, slope float64)
- func MAD[N compare.Number](vector ...N) float64
- func Max[N compare.Number](a ...N) N
- func Mean[N compare.Number](vector ...N) float64
- func Median[N compare.Number](vector ...N) float64
- func Min[N compare.Number](a ...N) N
- func Mode[N compare.Number](vector ...N) N
- func Modes[N compare.Number](vector ...N) []N
- func Negate[N compare.Number](n N) N
- func Percentile[N compare.Number](score N, vector ...N) float64
- func R2[N compare.Number](x []N, y []N) float64
- func Range[N compare.Number](a ...N) N
- func SNR[N compare.Number](sample ...N) float64
- func Skew[N compare.Number](sample ...N) float64
- func StdDev[N compare.Number](samples ...N) float64
- func StdErr[N compare.Number](n ...N) float64
- func Sum[N compare.Number](a ...N) N
- func VAdd[N compare.Number](x []N, y []N) []N
- func VDot[N compare.Number](x []N, y []N) N
- func VMul[N compare.Number](x []N, y []N) []N
- func VPow[N compare.Number](vector []N, pow N) []N
- func VSub[N compare.Number](x []N, y []N) []N
- func Var[N compare.Number](samples ...N) float64
- func ZScore[N compare.Number](x N, pop []N) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CastFloat32 ¶
CastFloat32 will cast n to a float32
func CastFloat64 ¶
CastFloat64 will cast n to a float64
func LinReg ¶
LinReg returns the liniar regression of two verctors such that y = slope*x + intercept
func Percentile ¶
Percentile return "score" percentile of a vector
func VAdd ¶
VAdd will return a vector containing elements x and y added such that x[i]+y[i] = returned[i]
func VMul ¶
VMul will return a vector containing elements x and y multiplied such that x[i]*y[i] = returned[i]
func VPow ¶
VPow returns a vector containing the result of each element of "vector" to the power och "pow"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.