CosineWindow[x]
表示关于 x 的余弦窗函数.
CosineWindow[x,α]
使用参数 α.
CosineWindow
CosineWindow[x]
表示关于 x 的余弦窗函数.
CosineWindow[x,α]
使用参数 α.
更多信息
- CosineWindow 是一个窗函数,通常用于需要对数据进行短片段处理的信号处理应用中.
- 窗口函数通过在每个片段的末端将数据值逐渐减小到零的方法而具有平滑效果.
- CosineWindow[x,α] 等于
(对于
),否则为 0. - CosineWindow[x] 等价于 CosineWindow[x,1].
- CosineWindow 动线性作用于列表.
范例
打开所有单元 关闭所有单元基本范例 (3)
Plot[CosineWindow[x], {x, -1, 1}]Plot3D[CosineWindow[x]CosineWindow[y], {x, -1, 1}, {y, -1, 1}, PlotRange -> All]FunctionExpand[CosineWindow[x]]FunctionExpand[CosineWindow[x, α]]范围 (6)
CosineWindow[0.1]Plot[CosineWindow[x, 3], {x, -1, 1}]Plot3D[CosineWindow[x, α], {α, 0, 5}, {x, -1, 1}]Plot[CosineWindow[(x - 1) / 2], {x, -1, 3}]Plot3D[CosineWindow[Sqrt[x ^ 2 + y ^ 2]], {x, -1, 1}, {y, -1, 1}, PlotRange -> All]ListPlot[Array[CosineWindow, 15, {-1 / 2, 1 / 2}], Filling -> Axis]ListPointPlot3D[Array[CosineWindow[#1] CosineWindow[#2]&, {15, 10}, {{-1 / 2, 1 / 2}}], Filling -> Axis]应用 (3)
h = ConstantArray[1 / 11., 11]w = Array[CosineWindow, Length[h], {-1 / 2, 1 / 2}];
fir = w h / Total[w h];LogLinearPlot[Evaluate[20Log[10, Abs@ListFourierSequenceTransform[#, ω]]& /@ {h, fir}], {ω, 0.1, Pi}, GridLines -> Automatic]使用窗指定计算样本 PowerSpectralDensity:
proc = ARMAProcess[1, {.5}, {.3}, 1];
data = RandomFunction[proc, {50}];spec = PowerSpectralDensity[data, w, CosineWindow];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" -> CosineWindow}]属性和关系 (3)
CosineWindow[x,0] 等价于狄利克雷窗:
FunctionExpand[CosineWindow[x, 0]] == FunctionExpand[DirichletWindow[x]]area = Integrate[CosineWindow[x], {x, -∞, ∞}]Plot[{CosineWindow[x], CosineWindow[x] / area}, {x, -1, 1}]f = FourierTransform[CosineWindow[x], x, w]LogLinearPlot[20 Log[10, Abs[f]], {w, .1, 80}]可能存在的问题 (1)
当作为符号传递给 Array 时,cosine 窗的二维采样对样本的每一行使用不同的参数:
Array[CosineWindow, {30, 30}, {{-.5, .5}}]//N//ListPlot3DArray[CosineWindow[#1] CosineWindow[#2]&, {30, 30}, {{-1 / 2, 1 / 2}}]//ListPlot3D相关指南
文本
Wolfram Research (2012),CosineWindow,Wolfram 语言函数,https://reference.wolfram.com/language/ref/CosineWindow.html.
CMS
Wolfram 语言. 2012. "CosineWindow." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/CosineWindow.html.
APA
Wolfram 语言. (2012). CosineWindow. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/CosineWindow.html 年
BibTeX
@misc{reference.wolfram_2026_cosinewindow, author="Wolfram Research", title="{CosineWindow}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/CosineWindow.html}", note=[Accessed: 13-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_cosinewindow, organization={Wolfram Research}, title={CosineWindow}, year={2012}, url={https://reference.wolfram.com/language/ref/CosineWindow.html}, note=[Accessed: 13-September-2026]}