unwrap                package:signal                R Documentation

_U_n_w_r_a_p _r_a_d_i_a_n _p_h_a_s_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Unwrap radian phases by adding multiples of 2*pi as appropriate to
     remove jumps.

_U_s_a_g_e:

     unwrap(a, tol = pi, dim = 1)

_A_r_g_u_m_e_n_t_s:

       a: vector of phase angles in radians. 

     tol: tolerance for removing phase jumps. 

     dim: dimension with which to apply the phase unwrapping. 

_V_a_l_u_e:

     A vector with the unwrapped phase angles.

_A_u_t_h_o_r(_s):

     Original Octave version by Bill Lash. Conversion to R by Tom
     Short.

_R_e_f_e_r_e_n_c_e_s:

     Octave Forge <URL: http://octave.sf.net>

_E_x_a_m_p_l_e_s:

     phase = c(linspace(0,2*pi), linspace(0, 2*pi))
     plot(phase, type = "l", ylim = c(0, 4*pi))
     lines(unwrap(phase), col = "blue")

