Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.unwrap

numpy.unwrap(p,discont=3.141592653589793,axis=-1)[source]

Unwrap by changing deltas between values to 2*pi complement.

Unwrap radian phasep by changing absolute jumps greater thandiscont to their 2*pi complement along the given axis.

Parameters:
p:array_like

Input array.

discont:float, optional

Maximum discontinuity between values, default ispi.

axis:int, optional

Axis along which unwrap will operate, default is the last axis.

Returns:
out:ndarray

Output array.

Notes

If the discontinuity inp is smaller thanpi, but larger thandiscont, no unwrapping is done because taking the 2*pi complementwould only make the discontinuity larger.

Examples

>>>phase=np.linspace(0,np.pi,num=5)>>>phase[3:]+=np.pi>>>phasearray([ 0.        ,  0.78539816,  1.57079633,  5.49778714,  6.28318531])>>>np.unwrap(phase)array([ 0.        ,  0.78539816,  1.57079633, -0.78539816,  0.        ])

Previous topic

numpy.radians

Next topic

numpy.deg2rad

Quick search

  • © Copyright 2008-2018, The SciPy community.
  • Last updated on Jul 24, 2018.
  • Created usingSphinx 1.6.6.

[8]ページ先頭

©2009-2025 Movatter.jp