stats

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2025 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dirichlet

func Dirichlet(factor float64, alpha ...float64) (sample []float64, err error)

Dirichlet returns a set of random numbers from dirichlet distribution (See https://en.wikipedia.org/wiki/Dirichlet_distribution#Random_variate_generation) Factor: multiplying factor to apply to all values

func Dirichlet1 added in v0.3.8

func Dirichlet1(factor float64, nvalues int) (sample []float64, err error)

Dirichlet1 returns a set of random numbers from dirichlet distribution When each alpha equals 1 (see https://en.wikipedia.org/wiki/Dirichlet_distribution#When_each_alpha_is_1)

func Gamma

func Gamma(alpha, beta float64) float64

Gamma returns a random number of gamma distribution (alpha > 0.0 and beta > 0.0)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL