uniform_noise

odl.core.phantom.noise.uniform_noise(space, low=0, high=1, seed=None)[source]

Uniformly distributed noise in space, pointwise U(low, high).

Parameters

spaceTensorSpace or ProductSpace

The space in which the noise is created.

lowspace.field element or space element-like, optional

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

highspace.field element or space element-like, optional

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

seedint, optional

Random seed to use for generating the noise. For None, use the current seed.

Returns

white_noise : space element

See Also

poisson_noise salt_pepper_noise white_noise numpy.random.normal