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、これら 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]; }