I am using a Radar Sensor. So applying Signal Processing on the Radar Sensor Data. PrevSample and PastSample are Radar IQ samples for a present and previous Sweep detecting tiny movement. In the source code I have some doubts that . Here I am adding the portion of Python Code . Can anyone please explain the following signal processing, and the significance of that, please describe what each term indicate
import numpy as np
Envelope = np.abs(PresentSample)
Delta = PresentSample * np.conj(PreviousSample)
PhaseWeights = np.imag(Delta)
Weights = np.abs(PhaseWeights) * Envelope
DeltaDist = np.dot(Weights, np.angle(Delta))
DeltaDist *= 2.5 / (2.0 * pi * sum(Weights))
Present and prev samples are 1D array consisting of iq samples. For each processing . Is Delta is cross correlation ? Please give explanation for rest of the codes Why multiply the DetltaDist ?
DeltaDist is the tiny movement, which is used to store in a Buffer. I am asking the signal processing logic of this code/algorithm. I know the code and the functions conj, imag, etc... I just want to know for example why we take conjugate product/ why we take imaginary part like that
DeltaDist
is used for. We can tell you what each of these operations are (but honestly,conj
,imag
,abs
andangle
are all well-documented and also self-explanatory, so not quite sure what the value for you would be; also, askiung about that many things, it's a bit broad), but we can't tell you what they're for without understanding the application here. What kind of signals are in the IQ signal? What is the thing your system does, overall? $\endgroup$PresentSample
andPreviousSample
. $\endgroup$import numpy as np
. Please edit your question with this extra information. $\endgroup$