Skip to content

4章前半を追加#63

Open
rkatotmu wants to merge 1 commit into
onolab-tmu:mainfrom
rkatotmu:rkato/chapter04
Open

4章前半を追加#63
rkatotmu wants to merge 1 commit into
onolab-tmu:mainfrom
rkatotmu:rkato/chapter04

Conversation

@rkatotmu

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread rkato/chapter04/q04.py
fig, ax = plt.subplots(4, 1)
for i in range(len(spec)):
# ax[i].pcolormesh(spec[i])
ax[i].imshow(

Copy link
Copy Markdown
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
Copy Markdown
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)

Comment thread rkato/chapter04/q05.py
for l in range(0, L):
sigma = 0
for m in range(0, Q):
sigma += wnd[l - m * S] ** 2

@i14kwmr i14kwmr Jul 23, 2023

Copy link
Copy Markdown
Collaborator

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