Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4章前半を追加 #63

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

rkatotmu
Copy link
Contributor

No description provided.

fig, ax = plt.subplots(4, 1)
for i in range(len(spec)):
# ax[i].pcolormesh(spec[i])
ax[i].imshow(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コメント:

ここは演習問題の指定の通り、matplotlib.pyplot.pcolormesh を使ってもらえると!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

また、x, y軸をインデックスではなく、周波数、時間といった物理量にできると良いと思いました!

ざっくりしたやり方はytakeuchiくんのやつを参考にしてもらえると!(url)

for l in range(0, L):
sigma = 0
for m in range(0, Q):
sigma += wnd[l - m * S] ** 2
Copy link
Collaborator

@i14kwmr i14kwmr Jul 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q=2の時の合成窓の挙動が少し怪しいです (小野先生の解説論文(url)と結果が異なる?)

ここは演習問題では、 $\sum _{m = -(Q - 1)}^{Q - 1} (w[l - m S]) ^ 2$ (数式崩れていますが...)となっているので、各インデックスlごとにsigmaを計算し、合成窓関数の値 (wnd/sigmaではなくwnd[l]/sigma)を求める必要があると思います!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants