GaussianWindow
表示关于 x 的高斯窗函数.
GaussianWindow[x,σ]
使用标准差 σ.
更多信息
- GaussianWindow 是一个窗函数,通常用于抗混叠和重新采样.
- 窗函数被用在以较短的片段来处理数据的应用中,并且通过在每个片段的末尾将数据值逐渐减小为零来产生平滑效果.
- GaussianWindow[x,α] 等于
. - GaussianWindow[x] 等价于 GaussianWindow[x,3/10].
- GaussianWindow 自动逐项作用于列表.
范例
打开所有单元 关闭所有单元基本范例 (3)
Plot[GaussianWindow[x], {x, -1, 1}, Exclusions -> None]Plot3D[GaussianWindow[x]GaussianWindow[y], {x, -1, 1}, {y, -1, 1}, PlotRange -> All, Exclusions -> None]FunctionExpand[GaussianWindow[x]]FunctionExpand[GaussianWindow[x, σ]]范围 (6)
GaussianWindow[0.1]Plot[GaussianWindow[x, 0.2], {x, -1, 1}, Exclusions -> None]Plot3D[GaussianWindow[x, σ], {σ, .1, 1}, {x, -1, 1}, Exclusions -> None]Plot[GaussianWindow[(x - 1) / 2], {x, -1, 3}, Exclusions -> None]Plot3D[GaussianWindow[Sqrt[x ^ 2 + y ^ 2]], {x, -1, 1}, {y, -1, 1}, PlotRange -> All, Exclusions -> None]ListPlot[Array[GaussianWindow, 15, {-1 / 2, 1 / 2}], Filling -> Axis]ListPointPlot3D[Array[GaussianWindow[#1] GaussianWindow[#2]&, {15, 10}, {{-1 / 2, 1 / 2}}], Filling -> Axis]应用 (3)
a = ConstantArray[1 / 11, 11]a2 = # / Total[#]&[a Array[GaussianWindow, 11, {-1 / 2, 1 / 2}]];LogLinearPlot[Evaluate[20Log[10, Abs@ListFourierSequenceTransform[#, ω]]& /@ {a, a2}], {ω, 0.0314, Pi}, PlotRange -> All, GridLines -> Automatic, ImageSize -> 300]使用窗指定计算样本 PowerSpectralDensity:
proc = ARMAProcess[1, {.5}, {.3}, 1];
data = RandomFunction[proc, {50}];spec = PowerSpectralDensity[data, w, GaussianWindow];sd = PowerSpectralDensity[data, w];sd === specPlot[{sd, spec}, {w, -π, π}, PlotRange -> All, PlotLegends -> {"no window", "with window"}]Plot[{spec, Evaluate@PowerSpectralDensity[proc, w]}, {w, -π, π}, PlotLegends -> {"data", "process"}]data = RandomFunction[ARMAProcess[1, {.3}, {.4}, 1], {300}];EstimatedProcess[data, ARMAProcess[1, 1], ProcessEstimator -> {"SpectralEstimator", "Window" -> GaussianWindow}]属性和关系 (8)
GaussianWindow[x,∞] 与 Dirichlet 窗等价:
FunctionExpand[GaussianWindow[x, ∞]] == FunctionExpand[DirichletWindow[x]]area = Integrate[GaussianWindow[x], {x, -∞, ∞}]Plot[{GaussianWindow[x], GaussianWindow[x] / area}, {x, -1, 1}, Exclusions -> None]f = FourierTransform[GaussianWindow[x], x, w]LogLinearPlot[20 Log[10, Abs[f]], {w, .1, 80}]f = FourierTransform[GaussianWindow[x, σ], x, ω]Plot3D[Abs@f, {ω, -30, 30}, {σ, 0.1, 1}, PlotRange -> All, PlotPoints -> 50]f = ListFourierSequenceTransform[Array[GaussianWindow, 11, {-1 / 2, 1 / 2}], ω, -5]//FullSimplifyf0 = N[f /. ω -> 0]Plot[Abs@f / f0, {ω, 0, π}, PlotRange -> All]tab = Table[(f = ListFourierSequenceTransform[Array[GaussianWindow, n, {-1 / 2, 1 / 2}], ω];
f0 = N[f /. ω -> 0];
20Log10[Abs@f / f0]), {n, {5, 15, 45}}];LogLinearPlot[tab, {ω, 0.01, π}, PlotRange -> {5, -60}, PlotLegends -> {5, 15, 45}]tab = Table[(f = ListFourierSequenceTransform[Array[GaussianWindow[#, σ]&, 15, {-1 / 2, 1 / 2}], ω];
f0 = N[f /. ω -> 0];
20Log10[Abs@f / f0]), {σ, {0.2, 0.3, 1.}}];LogLinearPlot[tab, {ω, 0.05, π}, PlotRange -> {5, -60}, PlotLegends -> {0.2, 0.3, 1.}]tab = Table[(f = ListFourierSequenceTransform[Array[win, 25, {-1 / 2, 1 / 2}], ω, -12];
f0 = Limit[f, ω -> 0.];
20Log10[Abs@f / f0]), {win, {GaussianWindow, DirichletWindow}}];LogLinearPlot[tab, {ω, 0.1, π}, PlotRange -> {5, -60}, PlotLegends -> {GaussianWindow, DirichletWindow}]可能存在的问题 (1)
当作为符号传递给 Array 时,高斯窗的二维采样将对样本的每一行使用不同的标准差:
Array[GaussianWindow, {30, 30}, {{-1 / 2, 1 / 2}}]//ListPlot3DArray[GaussianWindow[#1] GaussianWindow[#2]&, {30, 30}, {{-1 / 2, 1 / 2}}]//ListPlot3D相关指南
文本
Wolfram Research (2012),GaussianWindow,Wolfram 语言函数,https://reference.wolfram.com/language/ref/GaussianWindow.html.
CMS
Wolfram 语言. 2012. "GaussianWindow." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/GaussianWindow.html.
APA
Wolfram 语言. (2012). GaussianWindow. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/GaussianWindow.html 年
BibTeX
@misc{reference.wolfram_2026_gaussianwindow, author="Wolfram Research", title="{GaussianWindow}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/GaussianWindow.html}", note=[Accessed: 03-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_gaussianwindow, organization={Wolfram Research}, title={GaussianWindow}, year={2012}, url={https://reference.wolfram.com/language/ref/GaussianWindow.html}, note=[Accessed: 03-November-2026]}