causally.scm.noise.Normal

class causally.scm.noise.Normal(loc: float | array = 0.0, std: float | array = 1.0)

Wrapper for numpy.random.normal() sampler.

Parameters:
  • loc (Union[float, np.array of floats], default 0) – The mean of the sample.

  • std (Union[float, np.array of floats], default 1) – The standard deviation of the sample.

Methods

sample(size)

Draw random samples from a Gaussian distribution.