Beta

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:   "beta",
		Short: "generate samples from the beta distribution",
		Long: `Generate samples from the beta distribution.

.    alpha=0.5    alpha=5      alpha=2      alpha=2
.    beta=0.5     beta=1       beta=2       beta=4
0.0  ██████████   ▏            █▉           ███▉
0.1  ████▍        ▏            █████▎       ████████▋
0.2  ███▋         ▏            ███████▌     ██████████▏
0.3  ███▎         ▍            █████████    █████████▍
0.4  ███▏         ▉            ██████████   ███████▌
0.5  ███▎         █▌           ██████████▏  █████▎
0.6  ███▎         ██▋          █████████▏   ███▏
0.7  ███▋         ████▍        ███████▌     █▌
0.8  ████▍        ██████▊      █████▎       ▌
0.9  ██████████▏  ██████████▏  ██           ▏

https://en.wikipedia.org/wiki/Beta_distribution`,
		RunE: func(command *cobra.Command, args []string) (err error) {
			return generate.Sample(distuv.Beta{
				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