Periodogram[list]
绘制 list 的离散傅立叶变换(功率谱)的幅度平方.
Periodogram[list,n]
绘制长度为 n 的无重叠分区的功率谱的均值.
Periodogram[list,n,d]
使用具有偏移为 d 的分区.
Periodogram[list,n,d,wfun]
对每个分区使用平滑窗 wfun.
Periodogram[list,n,d,wfun,m]
在变换计算前,用0填充分区至长度为 m.
Periodogram[{list1,list2,…},n,d,wfun,m]
绘制多个列表的周期图.
Periodogram[audio,…]
绘制 audio 的功率谱.
Periodogram[video,…]
绘制 video 中第一条音轨的功率谱.
Periodogram[{input1,input2,…},…]
绘制所有 inputi 的功率谱.
Periodogram
Periodogram[list]
绘制 list 的离散傅立叶变换(功率谱)的幅度平方.
Periodogram[list,n]
绘制长度为 n 的无重叠分区的功率谱的均值.
Periodogram[list,n,d]
使用具有偏移为 d 的分区.
Periodogram[list,n,d,wfun]
对每个分区使用平滑窗 wfun.
Periodogram[list,n,d,wfun,m]
在变换计算前,用0填充分区至长度为 m.
Periodogram[{list1,list2,…},n,d,wfun,m]
绘制多个列表的周期图.
Periodogram[audio,…]
绘制 audio 的功率谱.
Periodogram[video,…]
绘制 video 中第一条音轨的功率谱.
Periodogram[{input1,input2,…},…]
绘制所有 inputi 的功率谱.
更多信息和选项
- Periodogram 通过绘制离散傅里叶变换幅度的平方来显示信号的频率内容.
- 在 Periodogram[list,n,d,wfun] 中,平滑窗 wfun 可用在
和
之间采样或长度为 n 的列表的窗函数指定. 默认窗是 DirichletWindow,它没有进行有效的平滑处理. - Periodogram[list,n] 等价于 Periodogram[list,n,n,DirichletWindow,n].
- Periodogram 可用于数字列表以及 Audio 和 Sound 对象.
- 对于多通道声音对象,Periodogram 绘制所有通道的功率谱.
- 对于实际的输入数据,因为傅立叶变换的对称性,Periodogram 只显示功率谱的前一半.
- 用 PeriodogramArray 计算有效功率谱.
- Periodogram 使用下列选项:
-
FourierParameters {0,1} 傅里叶参数 SampleRate Automatic 采样率 ScalingFunctions {"Linear","dB"} 缩放函数 - 设置 SampleRate->r 时,信号频率显示在范围 0 到 r/2 之间.
- ScalingFunctions 的可能设置包括:
-
Automatic 自动缩放 None 对
轴进行线性缩放,对
轴进行绝对缩放sy
轴缩放{sx}
轴缩放 {sx,sy} 在
和
方向采用不同的缩放函数 - 幅值缩放 sy 的可能设置包括:
-
"Absolute" 绝对缩放 "dB"
分贝缩放(缺省){f,f-1} 使用函数 f 及其倒数进行任意缩放 - 频率缩放 sx 的可能设置包括:
-
"Linear" 线性缩放(缺省) "Log10"
缩放{f,f-1} 使用函数 f 及其倒数进行任意缩放 - 缩放函数可以是 "dB" 或者 "Absolute",分别对应于分贝和绝对功率值.
- Periodogram 也接受 ListLinePlot 的所有选项.
范例
打开所有单元 关闭所有单元基本范例 (3)
data = Table[2 Sin[0.2 π n ] + Sin[0.5 π n] + RandomReal[{-1, 1}], {n, 0, 127}];
Periodogram[data]Sound 对象的 Periodogram:
Periodogram[ExampleData[{"Sound", "Apollo11ReturnSafely"}]]Audio 对象的功率谱:
Periodogram[ExampleData[{"Audio", "Piano"}]]范围 (4)
data = Table[2 Sin[0.2 π n ] + Sin[0.35 π n] + RandomReal[{-1, 1}], {n, 0, 255}];
Periodogram[data, 64, PlotRange -> All]Periodogram[data, 64, 32, PlotRange -> All]Periodogram[data, 64, 32, HammingWindow, PlotRange -> All]Periodogram[data, 64, 32, HammingWindow, 256, PlotRange -> All]Periodogram[{Table[Sin[2 Pi 697 t] + Sin[2 Pi 1209 t], {t, 0., 0.1, 1 / 8000.}], Table[Sin[2 Pi 852 t] + Sin[2 Pi 1336 t], {t, 0., 0.1, 1 / 8000.}]}]a = Audio[{Table[Sin[2 π 697 t] + Sin[2 π 1209 t], {t, 0., 0.3, 1 / 8000.}], Table[Sin[2 π 941 t] + Sin[2 π 1477 t], {t, 0., 0.3, 1 / 8000.}]}, SampleRate -> 8000]Periodogram[a]Periodogram[\!\(\*VideoBox[""]\)]选项 (33)
AspectRatio (3)
默认情况下,Periodogram 使用固定的高宽比:
Periodogram[IconizedObject[«data»]]通过 AspectRatio1 使高等和宽度相等:
Periodogram[IconizedObject[«data»], AspectRatio -> 1]AspectRatioFull 调整高度和宽度以便可以恰当地放在其他结构的里面:
plot = Periodogram[IconizedObject[«data»], AspectRatio -> Full];{Framed[Pane[plot, {50, 100}]], Framed[Pane[plot, {100, 100}]], Framed[Pane[plot, {100, 50}]]}Axes (3)
默认情况下,绘制 Axes:
Periodogram[IconizedObject[«data»]]Periodogram[IconizedObject[«data»], Axes -> False]{Periodogram[IconizedObject[«data»], Axes -> {True, False}], Periodogram[IconizedObject[«data»], Axes -> {False, True}]}AxesLabel (3)
AxesOrigin (2)
AxesStyle (3)
Periodogram[IconizedObject[«data»], AxesStyle -> Red]Periodogram[IconizedObject[«data»], AxesStyle -> {{Thick, Red}, {Thick, Blue}}]Periodogram[IconizedObject[«data»], AxesStyle -> Green, TicksStyle -> Red]DataRange (1)
FourierParameters (1)
改变 FourierParameters 中的 a 参数将改变缩放尺度:
data = Table[ Sin[n] + RandomReal[{-1, 1}], {n, 0, 127}];Table[Periodogram[data, ScalingFunctions -> "Absolute", FourierParameters -> {a, 1}, PlotRange -> All], {a, {0, 1}}]ImageSize (7)
使用已命名尺寸,如 Tiny、Small、Medium 和 Large:
{Periodogram[IconizedObject[«data»], ImageSize -> Tiny], Periodogram[IconizedObject[«data»], ImageSize -> Small]}{Periodogram[IconizedObject[«data»], ImageSize -> 150], Periodogram[IconizedObject[«data»], AspectRatio -> 1.5, ImageSize -> 150]}{Periodogram[IconizedObject[«data»], ImageSize -> {Automatic, 150}], Periodogram[IconizedObject[«data»], AspectRatio -> 2, ImageSize -> {Automatic, 150}]}{Periodogram[IconizedObject[«data»], ImageSize -> UpTo[200]], Periodogram[IconizedObject[«data»], AspectRatio -> 2, ImageSize -> UpTo[200]]}Periodogram[IconizedObject[«data»], ImageSize -> {200, 200}, Background -> StandardYellow]设置 AspectRatioFull 将填充可用空间:
Periodogram[IconizedObject[«data»], AspectRatio -> Full, ImageSize -> {200, 200}, Background -> StandardYellow]{Periodogram[IconizedObject[«data»], ImageSize -> {UpTo[150], UpTo[100]}], Periodogram[IconizedObject[«data»], AspectRatio -> 2, ImageSize -> {UpTo[150], UpTo[100]}]}Framed[Pane[Periodogram[IconizedObject[«data»], ImageSize -> Full, Background -> StandardYellow], {200, 100}]]Framed[Pane[Periodogram[IconizedObject[«data»], AspectRatio -> Full, ImageSize -> {Scaled[0.5], Scaled[0.5]}, Background -> StandardYellow], {200, 100}]]SampleRate (1)
默认情况下,Periodogram 假定每个时间单位一个样本的采样率:
data = Table[2 Sin[0.2 π n ] + Sin[0.5 π n] + RandomReal[{-1, 1}], {n, 0, 127}];
Periodogram[data]Periodogram[data, SampleRate -> 8]ScalingFunctions (1)
默认情况下,Periodogram 显示幅值组成的分贝值:
data = Table[Sin[ n] + Sin[2.5 n], {n, 0, 800}];
Periodogram[data]Periodogram[data, ScalingFunctions -> "Absolute"]Ticks (4)
Periodogram[IconizedObject[«data»]]Periodogram[IconizedObject[«data»], Ticks -> None]Periodogram[IconizedObject[«data»], Ticks -> {{.1, .3, .4}, {-20, -5, 15}}]Periodogram[IconizedObject[«data»], Ticks -> {{{.1, a}, {.3, b}, {.4, c}}, {{-20, -d}, {-5, -e}, {15, f}}}]TicksStyle (4)
Periodogram[IconizedObject[«data»], TicksStyle -> Directive[Red, Thick]]Periodogram[IconizedObject[«data»], TicksStyle -> {Directive[Blue, Thick], Directive[Red, Thick]}]Periodogram[IconizedObject[«data»], Ticks -> {{{.1, a, .2}, {.3, b, {0, .07}}, {.4, c, {0, .14}}}, {{-20, -d, .03}, {-5, -e, .1}, {15, f, .19}}}]Periodogram[IconizedObject[«data»], Ticks -> {{{.1, a, .2, Directive[Red, Thick]}, {.3, b, {0, .07}, Directive[Red, Thick]}, {.4, c, {0, .14}, Directive[Red, Thick]}}, {{-20, -d, .03, Directive[Blue, Thick]}, {-5, -e, .1, Directive[Red, Thick]}, {15, f, .19, Directive[Red, Thick, Dashed]}}}]属性和关系 (1)
Periodogram 绘制了傅里叶变换的幅度平方:
data = Table[2 Sin[0.2 π n] + Sin[0.5 π n] + RandomReal[{-1, 1}], {n, 0, 127}];
{Periodogram[data], ListLinePlot[Take[20Log[10, Abs[Fourier[data]]], 64], DataRange -> {0., 0.5}]}可能存在的问题 (2)
当指定显式的 DataRange 时,忽略 SampleRate 设置:
data = Table[2 Sin[0.2 π n] + Sin[0.5 π n] + RandomReal[{-1, 1}], {n, 0, 127}];
Periodogram[data, SampleRate -> 1, DataRange -> {0, Pi}, PlotRange -> All]list = RandomReal[1, 1000000];AbsoluteTiming[Periodogram[list, 100000, Automatic, HannWindow]]AbsoluteTiming[Periodogram[list, 1000, Automatic, HannWindow]]AbsoluteTiming[Periodogram[list, Automatic, Automatic, HannWindow]]文本
Wolfram Research (2012),Periodogram,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Periodogram.html (更新于 2024 年).
CMS
Wolfram 语言. 2012. "Periodogram." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2024. https://reference.wolfram.com/language/ref/Periodogram.html.
APA
Wolfram 语言. (2012). Periodogram. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Periodogram.html 年
BibTeX
@misc{reference.wolfram_2026_periodogram, author="Wolfram Research", title="{Periodogram}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/Periodogram.html}", note=[Accessed: 05-December-2026]}
BibLaTeX
@online{reference.wolfram_2026_periodogram, organization={Wolfram Research}, title={Periodogram}, year={2024}, url={https://reference.wolfram.com/language/ref/Periodogram.html}, note=[Accessed: 05-December-2026]}