Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个信号x(t)。我必须移动它a/2,-a/2然后取这两个移动信号的总和。如何x(t)在 C++ 中编写时间转换?
x(t)
a/2
-a/2
对于时间序列数据,时间偏移只是 n 个样本的偏移量,因此将偏移 +/-a/2 个样本的数据求和:
for (i = a/2; i < N - a/2; ++i) { y[i] = x[i - a/2] + x[i + a/2]; }