bernoulli

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 (
	P float64 = 0.5

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

.  p=0.5        p=0.1        p=0.8
0  ██████████▏  ██████████▏  ██▌
1  █████████▉   █▏           ██████████▏

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

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