ptypy.utils.parallel.MPInoise2d#
- ptypy.utils.parallel.MPInoise2d(sh, rms=1.0, mfs=2, rms_mod=None, mfs_mod=2)#
Creates complex-valued statistical noise in the shape of sh consistent across all nodes.
- Parameters:
sh (tuple) – Output shape.
rms (float or None) – Root mean square of noise in phase. If None, only ones are returned.
mfs (float) – Minimum feature size [in pixel] of noise in phase.
rms_mod (float or None) – Root mean square of noise in amplitude / modulus.
mfs_mod – Minimum feature size [in pixel] of noise in amplitude / modulus.
- Returns:
noise – Numpy array filled with noise
- Return type:
ndarray
See also