phase_unwrap
Fix phase jumps.
Namespace: dsp
Prototype
Vector<T> phase_unwrap(const Vector<T> &x, float r=2 *π)
Parameters
x | Vector (typically with angle values). |
r | Defines the equivalence class on \(x\) |
Returns
A vector \(y\) such as \(y_k = x_k + k \cdot r \), and with the less possible number of discontinuities (no discontinuity greater than \(r/2\) in absolute value).
Description
Example
