neclib.core.math.random#

Aliases#

Functions

None

clip

Limit the value to the range [minimum, maximum].

class Random(seed=None, limits=None)[source]#

Bases: object

Parameters:
  • seed (Optional[int]) –

  • limits (Optional[Sequence]) –

walk(mu: Union[int, float], noise: Union[int, float], stability: Union[int, float], *, initial: Optional[Union[int, float]] = None) Generator[float, None, None][source]#
walk(mu: Union[int, float], noise: Union[int, float], stability: Union[int, float], *, initial: Union[Sequence, ndarray]) Generator[ndarray, None, None]
fluctuation(noise: Union[int, float], *, shape: None = None) Generator[float, None, None][source]#
fluctuation(noise: Union[int, float], *, shape: Tuple[int, ...]) Generator[ndarray, None, None]