lognormal

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 (
	Mu    float64
	Sigma float64 = 1

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

.    mu=0         mu=0         mu=0
.    sigma=1      sigma=0.5    sigma=0.25
0.0  ██████▏      ▍            ▏
0.3  ██████████▏  █████▋       ▌
0.6  ████████▏    ██████████▏  ███████▌
0.9  ██████       ████████▋    ██████████▏
1.2  ████▌        █████▋       ████▎
1.5  ███▍         ███▍         █▏
1.8  ██▋          ██           ▎
2.1  ██▏          █▏           ▏
2.4  █▋           ▋            ▏
2.7  █▍           ▍            ▏

https://en.wikipedia.org/wiki/Log-normal_distribution`,
		RunE: func(command *cobra.Command, args []string) (err error) {
			return generate.Sample(distuv.LogNormal{
				Mu:    Mu,
				Sigma: Sigma,
			})
		},
	}
)

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