Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

unwrap

Unwrap radian phases


Description

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

Usage

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

Arguments

a

vector of phase angles in radians.

tol

tolerance for removing phase jumps.

dim

dimension with which to apply the phase unwrapping.

Value

A vector with the unwrapped phase angles.

Author(s)

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

References

Octave Forge http://octave.sf.net

Examples

phase <- c(seq(0, 2*pi, length=500), seq(0, 2*pi, length=500))
plot(phase, type = "l", ylim = c(0, 4*pi))
lines(unwrap(phase), col = "blue")

signal

Signal Processing

v0.7-6
GPL-2
Authors
Uwe Ligges [aut, cre] (new maintainer), Tom Short [aut] (port to R), Paul Kienzle [aut] (majority of the original sources), Sarah Schnackenberg [ctb] (various test cases and bug fixes), David Billinghurst [ctb], Hans-Werner Borchers [ctb], Andre Carezia [ctb], Pascal Dupuis [ctb], John W. Eaton [ctb], E. Farhi [ctb], Kai Habel [ctb], Kurt Hornik [ctb], Sebastian Krey [ctb], Bill Lash [ctb], Friedrich Leisch [ctb], Olaf Mersmann [ctb], Paulo Neis [ctb], Jaakko Ruohio [ctb], Julius O. Smith III [ctb], Doug Stewart [ctb], Andreas Weingessel [ctb]
Initial release
2015-07-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.