由两个具有未知关断的移位周期信号确定瞬时相位

2024-10-17 06:17:14 发布

您现在位置:Python中文网/ 问答频道 /正文

我有两个周期性的噪声信号,依赖于不断增加的参考角。两个信号偏移90度,其中一个具有未知的变化偏移。可以使用简单的python代码生成两个这样的示例信号:

instantaneous_phase=np.linspace(0,6*np.pi,1000) % (2*np.pi)

unknown_offset=np.linspace(0,1,1000)

signal1=np.sin(instantaneous_phase) + ((np.random.rand(1000))-0.5)/10
signal2=np.cos(instantaneous_phase) + ((np.random.rand(1000))-0.5)/10 + unknown_offset

提供类似于:

enter image description here

我需要重建instantaneous_phase,只使用signal1signal2。这可能吗?如果有人能给我指出正确的方向,我将不胜感激。你知道吗


Tags: 信号nppirandom噪声代码生成unknownoffset