uniform_noise
- odl.core.phantom.noise.uniform_noise(space, low=0, high=1, seed=None)[source]
Uniformly distributed noise in
space, pointwiseU(low, high).Parameters
- space
TensorSpaceorProductSpace The space in which the noise is created.
- low
space.fieldelement orspaceelement-like, optional The lower bound of the uniform noise. If a scalar, it is interpreted as
low * space.one(). Ifspaceis complex, the real and imaginary parts are interpreted as their respective part of the noise.- high
space.fieldelement orspaceelement-like, optional The upper bound of the uniform noise. If a scalar, it is interpreted as
high * space.one(). Ifspaceis 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 :
spaceelementSee Also
poisson_noise salt_pepper_noise white_noise numpy.random.normal
- space