chisquared

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

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

.    k=1          k=4          k=9
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/Chi-squared_distribution`,
		RunE: func(command *cobra.Command, args []string) (err error) {
			return generate.Sample(distuv.ChiSquared{
				K: K,
			})
		},
	}
)

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