causally.scm.noise.Uniform

class causally.scm.noise.Uniform(low: float | array = 0.0, high: float | array = 1.0)

Wrapper for numpy.random.uniform() sampler.

Parameters:
  • low (Union[float, np.array of floats], default 0) – Lower bound of the output interval. All values generated will be greater than or equal to low.

  • high (Union[float, np.array of floats], default 1) – Upper bound of the output interval. All values generated will be less than or equal to high.

Methods

sample(size)

Draw random samples from a uniform distribution.