white_noise¶
- odl.phantom.noise.white_noise(space, mean=0, stddev=1, seed=None)[source]¶
Standard gaussian noise in space, pointwise
N(mean, stddev**2).- Parameters:
- space
TensorSpaceorProductSpace The space in which the noise is created.
- mean
space.fieldelement orspaceelement-like, optional The mean of the white noise. If a scalar, it is interpreted as
mean * space.one(). Ifspaceis complex, the real and imaginary parts are interpreted as the mean of their respective part of the noise.- stddev
floatorspaceelement-like, optional The standard deviation of the white noise. If a scalar, it is interpreted as
stddev * space.one().- seedint, optional
Random seed to use for generating the noise. For
None, use the current seed.
- space
- Returns:
- white_noise
spaceelement
- white_noise