BlackmanHarrisWindow
表示 x 的 Blackman–Harris 窗函数.
更多信息
- BlackmanHarrisWindow 是一个窗函数,通常用在信号处理中需要以短的片段对数据进行处理的应用中.
- 窗函数通过在每个片段末尾将数据值逐渐减小到零的方式产生平滑效果.
- BlackmanHarrisWindow[x] 等于
. - BlackmanHarrisWindow 自动线性作用于列表.
范例
打开所有单元 关闭所有单元基本范例 (3)
Plot[BlackmanHarrisWindow[x], {x, -1, 1}]Plot3D[BlackmanHarrisWindow[x]BlackmanHarrisWindow[y], {x, -1, 1}, {y, -1, 1}, PlotRange -> All]FunctionExpand[BlackmanHarrisWindow[x]]范围 (4)
BlackmanHarrisWindow[0.1]Plot[BlackmanHarrisWindow[(x - 1) / 2], {x, -1, 3}]在圆形支持(support)下的二维 Blackman–Harris 窗:
Plot3D[BlackmanHarrisWindow[Sqrt[x ^ 2 + y ^ 2]], {x, -1, 1}, {y, -1, 1}, PlotRange -> All]ListPlot[Array[BlackmanHarrisWindow, 15, {-1 / 2, 1 / 2}], Filling -> Axis]ListPointPlot3D[Array[BlackmanHarrisWindow[#1] BlackmanHarrisWindow[#2]&, {15, 10}, {{-1 / 2, 1 / 2}}], Filling -> Axis, PlotRange -> All]应用 (3)
h = ConstantArray[1 / 11., 11]fir = # / Total[#]&[h Array[BlackmanHarrisWindow, Length[h], {-1 / 2, 1 / 2}]];LogLinearPlot[Evaluate[20Log[10, Abs@ListFourierSequenceTransform[#, ω]]& /@ {h, fir}], {ω, 0.01, Pi}, PlotRange -> All, GridLines -> Automatic, ImageSize -> 300]使用窗指定,计算样本 PowerSpectralDensity:
proc = ARMAProcess[1, {.5}, {.3}, 1];
data = RandomFunction[proc, {50}];spec = PowerSpectralDensity[data, w, BlackmanHarrisWindow];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" -> BlackmanHarrisWindow}]属性和关系 (2)
area = Integrate[BlackmanHarrisWindow[x], {x, -∞, ∞}]Plot[{BlackmanHarrisWindow[x], BlackmanHarrisWindow[x] / area}, {x, -1, 1}, PlotRange -> All]f = FourierTransform[BlackmanHarrisWindow[x], x, w]LogLinearPlot[20 Log[10, Abs[f]], {w, .1, 100}]相关指南
文本
Wolfram Research (2012),BlackmanHarrisWindow,Wolfram 语言函数,https://reference.wolfram.com/language/ref/BlackmanHarrisWindow.html.
CMS
Wolfram 语言. 2012. "BlackmanHarrisWindow." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/BlackmanHarrisWindow.html.
APA
Wolfram 语言. (2012). BlackmanHarrisWindow. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/BlackmanHarrisWindow.html 年
BibTeX
@misc{reference.wolfram_2026_blackmanharriswindow, author="Wolfram Research", title="{BlackmanHarrisWindow}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/BlackmanHarrisWindow.html}", note=[Accessed: 17-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_blackmanharriswindow, organization={Wolfram Research}, title={BlackmanHarrisWindow}, year={2012}, url={https://reference.wolfram.com/language/ref/BlackmanHarrisWindow.html}, note=[Accessed: 17-August-2026]}