normal
- sherpa.utils.random.normal(rng: Generator | RandomState | None, loc: float, scale: float, size: None = None) float[source] [edit on github]
- sherpa.utils.random.normal(rng: Generator | RandomState | None, loc: float, scale: float, size: int | Sequence[int] | ndarray) ndarray
Create a random value from a normal distribution.
- Parameters:
- rng
numpy.random.Generator,numpy.random.RandomState,orNone Determines how the random numbers are created. If set to None then the
numpy.random.normalroutine is used.- loc
number,optional The location of the normal.
- scale
number,optional The scale of the normal.
- size
optional The shape and number of elements to create.
- rng
- Returns:
- value
numberorndarray
- value