BartlettHannWindow
表示 x 的一个 Bartlett–Hann 窗函数.
更多信息
- BartlettHannWindow 是一个窗函数,通常用在信号处理中需要以短的片段对数据进行处理的应用中.
- 窗函数通过在每个片段的末端将数据值逐渐减小为零来产生平滑效果.
- BartlettHannWindow[x] 等价于
. - BartlettHannWindow 自动线性作用于列表.
范例
打开所有单元 关闭所有单元基本范例 (3)
Plot[BartlettHannWindow[x], {x, -1, 1}]Plot3D[BartlettHannWindow[x]BartlettHannWindow[y], {x, -1, 1}, {y, -1, 1}, PlotRange -> All]FunctionExpand[BartlettHannWindow[x]]范围 (4)
BartlettHannWindow[0.1]Plot[BartlettHannWindow[(x - 1) / 2], {x, -1, 3}]Plot3D[BartlettHannWindow[Sqrt[x ^ 2 + y ^ 2]], {x, -1, 1}, {y, -1, 1}, PlotRange -> All]ListPlot[Array[BartlettHannWindow, 15, {-1 / 2, 1 / 2}], Filling -> Axis]ListPointPlot3D[Array[BartlettHannWindow[#1] BartlettHannWindow[#2]&, {15, 10}, {{-1 / 2, 1 / 2}}], Filling -> Axis]应用 (3)
a = ConstantArray[1 / 11, 11]a2 = # / Total[#]&[a Array[BartlettHannWindow, 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, BartlettHannWindow];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" -> BartlettHannWindow}]属性和关系 (2)
area = Integrate[BartlettHannWindow[x], {x, -∞, ∞}]Plot[{BartlettHannWindow[x], BartlettHannWindow[x] / area}, {x, -1, 1}]f = FourierTransform[BartlettHannWindow[x], x, w]LogLinearPlot[20 Log[10, Abs[f]], {w, .1, 80}]相关指南
文本
Wolfram Research (2012),BartlettHannWindow,Wolfram 语言函数,https://reference.wolfram.com/language/ref/BartlettHannWindow.html.
CMS
Wolfram 语言. 2012. "BartlettHannWindow." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/BartlettHannWindow.html.
APA
Wolfram 语言. (2012). BartlettHannWindow. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/BartlettHannWindow.html 年
BibTeX
@misc{reference.wolfram_2026_bartletthannwindow, author="Wolfram Research", title="{BartlettHannWindow}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/BartlettHannWindow.html}", note=[Accessed: 07-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_bartletthannwindow, organization={Wolfram Research}, title={BartlettHannWindow}, year={2012}, url={https://reference.wolfram.com/language/ref/BartlettHannWindow.html}, note=[Accessed: 07-August-2026]}