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
spaceTensorSpace or ProductSpace

The space in which the noise is created.

meanspace.field element or space element-like, optional

The mean of the white noise. If a scalar, it is interpreted as mean * space.one(). If space is complex, the real and imaginary parts are interpreted as the mean of their respective part of the noise.

stddevfloat or space 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.

Returns
white_noisespace element