- cupy.unwrap(p, discont=None, axis=-1, *, period=6.283185307179586)#
Unwrap by taking the complement of large deltas w.r.t. the period.
This unwraps a signal p by changing elements which have an absolute difference from their predecessor of more than
max(discont, period/2)to their period-complementary values.
For the default case where period is \(2\pi\) and is
discontis \(\pi\), this unwraps a radian phase p such that adjacent differences are never greater than \(\pi\) by adding \(2k\pi\) for some integer \(k\).
p (cupy.ndarray) – Input array. discont (float): Maximum discontinuity between values, default is
period/2. Values below
period/2are treated as if they were
period/2. To have an effect different from the default,
discontshould be larger than
axis (int) – Axis along which unwrap will operate, default is the last axis.
period – float, optional Size of the range over which the input wraps. By default, it is \(2\pi\).
The result array.
- Return type: