uniform_noise¶
- odl.phantom.noise.uniform_noise(space, low=0, high=1, seed=None)[source]¶
Uniformly distributed noise in
space
, pointwiseU(low, high)
.- Parameters:
- space
TensorSpace
orProductSpace
The space in which the noise is created.
- low
space.field
element orspace
element-like
, optional The lower bound of the uniform noise. If a scalar, it is interpreted as
low * space.one()
. Ifspace
is complex, the real and imaginary parts are interpreted as their respective part of the noise.- high
space.field
element orspace
element-like
, optional The upper bound of the uniform noise. If a scalar, it is interpreted as
high * space.one()
. Ifspace
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.
- space
- Returns:
- white_noise
space
element
- white_noise