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
TensorSpace
orProductSpace
The space in which the noise is created.
- mean
space.field
element orspace
element-like
, optional The mean of the white noise. If a scalar, it is interpreted as
mean * space.one()
. Ifspace
is complex, the real and imaginary parts are interpreted as the mean of their respective part of the noise.- stddev
float
orspace
element-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
space
element
- white_noise