Possible scaling error for 0 and Nyquist frequencies in multitaper spectra

Đang mở
#14,426 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@badrisatyam1-ctrl đang làm issue này rồi.

Từ ngày 17/10/2026.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
56/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
data

Hướng nghiên cứu

Start by reading _psd_from_mt in mne/time_frequency/multitaper.py around lines 200–218 and compare its one-sided scaling with the SciPy spectrogram behavior linked in the issue. Check how the multitaper spectrum construction represents the 0 and Nyquist bins, then identify or add focused tests for those cases. Done means the endpoint bins have the expected scaling while other one-sided bins remain correctly scaled.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

_psd_from_mt expects the coefficients for a one-sided spectra, and as such doubles the values of frequency bins. However, I would expect the 0 and Nyquist frequencies to be excluded from this, e.g., as in SciPy's spectrogram. Without the frequency bin info, _psd_from_mt just scales everything.

https://github.com/mne-tools/mne-python/blob/8f498626a53704a6a96bcd8a11e22cbd8866efa5/mne/time_frequency/multitaper.py#L200-L218

I tried to look for somewhere else where this might be accounted for, but nothing popped out. Apologies if I missed some other scaling in the MT spectra construction or something.

Ngôn ngữ chính
Python
Star
3.6k
Fork
1.6k
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
73

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mne-tools/mne-python

Tất cả issue của mne-tools/mne-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.