scramble_phases#
- scramble_phases(arr, noise_proportion=0.5, seed=42, normalize_power=False)[source]#
Perform random phase scrambling of
arr
.- Parameters:
- arrNDArray
Input data.
- noise_proportionfloat, optional
Proportion of scrambled phases, 0.5 by default.
- seedint, optional
The seed for the random phase scrambling, 42 by default.
- normalize_powerbool, optional
Return value has same sum of squares as
arr
.
- Returns:
- NDArray
Phase scrambled version of
arr
.