matplotlib.mlab.specgram当量(J)

2024-04-16 03:59:46 发布

您现在位置:Python中文网/ 问答频道 /正文

Java中是否有类似的库可以完成matplotlib库的^{}函数的功能?在

specgram将数据拆分为指定长度的段,并计算每个段的频谱,对每个段应用窗口函数。它还应用了一个名为detrend的函数。在

specgram返回(频谱,频率,t),描述如下:

spectrum: 2-D array columns are the periodograms of successive segments

freqs: 1-D array The frequencies corresponding to the rows in spectrum

t: 1-D array The times corresponding to midpoints of segments (i.e the columns in spectrum).

即使没有类似的图书馆,如何做到这一点?我假设有很多用于Java的FFT库。以下是正确的方法吗?我需要的是spectrum(周期图),它由{}返回。在

  • 将数据拆分为指定长度的块
  • 在每个块上应用FFT函数
  • 在每个块上应用窗口函数(汉宁窗口)
  • 是吗?在

Tags: columnsoftheto数据函数injava