ptypy.utils.scripts.diversify#
- ptypy.utils.scripts.diversify(A, noise=None, shift=None, power=1.0)#
Add diversity to 3d numpy array A, acts in-place.
- Parameters:
A (np.array) – Input numpy array.
noise (2-tuple or 4-tuple) – For detailed description see ptypy.utils.parallel.MPInoise2d
power (float, tuple) – Relative power of layers with respect to the first (0) layer. Can be scalar or tuple / array
shift (float, tuple) – Relative shift of layers with respect to the first (0) layer. Can be scalar or tuple / array not implemented yet
See also