I measure velocity in two directions, x and y. My measurement ends up in the phase of a complex number and has phase wraps. Due to the nature of my measurement, the two components that I measure are slightly rotated from the actual axes of my coordinate system. I know the rotations that cause this error, which I want to use to correct my measurements.
How do I linearly combine these phases?
Maybe I should just unwrap my data and then use the result as a scalar, but I feel that there is probably a better way keeping the phase in the exponent. Also, unwrapping is not without its problems. My exact problem does not even seem to matter, I`m looking for a way to linearly add (with weights) the phase of two complex numbers. Might be close to the weighted average, which is given by the argument of the sum of two complex numbers.
This question kind of has the same problem, looking for a linear combination of circular data.
First idea
I thought I could use the fact that the argument of the sum of two complex numbers is the vector-averaged argument.
With rotation weights
$\begin{pmatrix} e^{-i \varphi_{x}} \\ 0 \end{pmatrix} R_x = \begin{pmatrix} \rho_{x\rightarrow x} \\ \rho_{x\rightarrow y} \end{pmatrix} e^{-i \varphi_{x}}$, and $\begin{pmatrix} 0 \\ e^{-i \varphi_{y}} \end{pmatrix} R_y = \begin{pmatrix} \rho_{y\rightarrow x} \\ \rho_{y\rightarrow y} \end{pmatrix} e^{-i \varphi_{y}}$
then the complex sum yields vector averaged phase
$S_{x} = \begin{pmatrix} \rho_{x\rightarrow x} \\ \rho_{x\rightarrow y} \end{pmatrix} e^{-i \varphi_{x}} + \begin{pmatrix} 1-\rho_{x\rightarrow x} \\ 1-\rho_{x\rightarrow y} \end{pmatrix} e^{-i 0} \\ S_{y} = \begin{pmatrix} \rho_{y\rightarrow x} \\ \rho_{y\rightarrow y} \end{pmatrix} e^{-i \varphi_{y}} + \begin{pmatrix} 1-\rho_{y\rightarrow x} \\ 1-\rho_{y\rightarrow y} \end{pmatrix} e^{-i 0}$
and pointwise multiplication adds phases
$S_{tot} = S_x \circ S_y$
$\Phi_{tot} = Arg(S_{tot})$
But that seems like I first just average (weighted) with $0$ and then add the results, both without accounting for wraps.