gamma

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Alpha float64 = 1
	Beta  float64 = 1

	Cmd = &cobra.Command{
		Use:   "gamma",
		Short: "generate samples from the gamma distribution",
		Long: `Generate samples from the gamma distribution.

.    alpha=0.5    alpha=1      alpha=2      alpha=5
.    beta=0.5     beta=0.5     beta=1       beta=1
0.0  ██████████▏  ██████████▏  ████████▏    ▎
1.0  ██▍          ██████▏      ██████████▏  ██▋
2.0  █▏           ███▊         ██████▍      ███████▏
3.0  ▋            ██▎          ███▎         █████████▊
4.0  ▍            █▌           █▋           ██████████▏
5.0  ▎            ▉            ▊            ████████▎
6.0  ▏            ▌            ▍            ██████
7.0  ▏            ▍            ▎            ████
8.0  ▏            ▎            ▏            ██▍
9.0  ▏            ▏            ▏            █▌

https://en.wikipedia.org/wiki/Gamma_distribution`,
		RunE: func(command *cobra.Command, args []string) (err error) {
			return generate.Sample(distuv.Gamma{
				Alpha: Alpha,
				Beta:  Beta,
			})
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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