Versions in this module Expand all Collapse all v0 v0.5.3 Jan 19, 2023 Changes in this version + func BoolP(p float32) bool + func PChoose32(ps []float32) int + func PChoose64(ps []float64) int v0.5.0 Jun 12, 2019 Changes in this version + var KiT_RndDists = kit.Enums.AddEnum(RndDistsN, false, nil) + func Bet(a, b float64, thr int) float64 + func Binom(n int, p float64, thr int) float64 + func BoolProb(p float64, thr int) bool + func Discrete(dist []float64, thr int) int + func Gam(v float64, k int, thr int) float64 + func Gauss(stdev float64, thr int) float64 + func IntMeanRange(mean, rnge int64, thr int) int64 + func IntMinMax(min, max int64, thr int) int64 + func IntZeroN(n int64, thr int) int64 + func PermuteInts(ins []int) + func PermuteStrings(ins []string) + func Permutefloat32s(ins []float32) + func Permutefloat64s(ins []float64) + func Poiss(lmb float64, thr int) float64 + func UniformMeanRange(mean, rnge float64, thr int) float64 + func UniformMinMax(min, max float64, thr int) float64 + func ZeroOne(thr int) float64 + type RndDists int + const Beta + const Binomial + const Gamma + const Gaussian + const Mean + const Poisson + const RndDistsN + const Uniform + func (ev *RndDists) UnmarshalJSON(b []byte) error + func (ev RndDists) MarshalJSON() ([]byte, error) + func (i *RndDists) FromString(s string) error + func (i RndDists) String() string + type RndParams struct + Dist RndDists + Mean float64 + Par float64 + Var float64 + func (rp *RndParams) Density(s float64) float64 + func (rp *RndParams) Gen(thr int) float64