normal

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Normal

type Normal struct {
	Std  float64
	Mean float64
	// contains filtered or unexported fields
}

Normal is a source of normally distributed random numbers.

func New

func New(std, mean float64, generator *rand.LockedRand) *Normal

New returns a new Normal, initialized with the given standard deviation and mean parameters.

func (Normal) Next

func (u Normal) Next() float64

Next returns a random sample drawn from the distribution.

Jump to

Keyboard shortcuts

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