EstimatedBackground[data]
估计 data 的背景.
EstimatedBackground[data,σ]
尝试保留尺度为 σ 以内的峰值.
EstimatedBackground
EstimatedBackground[data]
估计 data 的背景.
EstimatedBackground[data,σ]
尝试保留尺度为 σ 以内的峰值.
更多信息和选项
- EstimatedBackground 估计背景或基线,同时试图保持输入列表的特征.
- 输入 data 可以是下列形式之一:
-
{y1,y2,…} 一个值列表 TimeSeries[…] 时间序列对象 EventSeries[…] 事件序列对象 - 可以给出以下选项:
-
Method Automatic 所用方法 Padding "Reversed" 所用的填充方案 - EstimatedBackground 接受 Method 选项. 可能的设置为:
-
"MovingAverage" 移动平均背景估计 {"SNIP",r} 统计敏感的非线性迭代削峰
范例
打开所有单元 关闭所有单元基本范例 (2)
data = {2, 1, 3, 5, 6, 6, 4, 3, 2, 4, 7, 3, 2, 4, 2, 2, 1};base = EstimatedBackground[data]ListLinePlot[{data, base}]ListLinePlot[{data, data - base}]data = Table[Sin[i] + .1Sin[10 i], {i, 0, 2Pi, 0.01}];
ListLinePlot[{data, EstimatedBackground[data]}]范围 (4)
data = FinancialData["GE", {"Jun 2010", "Jan 2011"}, "Value"];ListLinePlot[{data, EstimatedBackground[data]}]ListLinePlot[{data, EstimatedBackground[data, 0]}]ListLinePlot[{data, EstimatedBackground[data, 10]}]list = Range[5, 20, 5];
ListLinePlot[Prepend[EstimatedBackground[data, #]& /@ list, data], PlotLegends -> Prepend["σ = " <> ToString[#]& /@ list, "Original"], Filling -> Table[i -> {i + 1}, {i, 1, Length[list]}]]比较 Quantity 对象的基线:
data = WeatherData["New York", "Temperature", {"2010", "2012", "Month"}, "Value"]EstimatedBackground[data]估计规则采样的 TimeSeries 对象的基线:
ts = TimeSeries[FinancialData["MSFT", "Jan. 1, 2008"], TemporalRegularity -> True]base = EstimatedBackground[ts]DateListPlot[{ts, EstimatedBackground[ts]}]估计不规则采样的 TimeSeries 对象的基线:
v = {2, 1, 6, 5, 7, 4};
t = {1, 2, 5, 10, 12, 15};
ts = TimeSeries[v, {t}]RegularlySampledQ[ts]EstimatedBackground[ts]DateListPlot[{ts, %}]选项 (1)
应用 (2)
data = WolframAlpha["sunspot", {{"SunspotsPartialTimeSeries:SpaceWeatherData", 1}, "TimeSeriesData"}][[All, 2]];bg = EstimatedBackground[data];ListLinePlot[{data, bg}, AspectRatio -> 1 / 3]ListLinePlot[data - bg, AspectRatio -> 1 / 3]temp = WeatherData["Chicago", "Temperature", {{2014, 12, 1, 0, 0}, {2014, 12, 31, 23, 59}, All}]DateListPlot[temp]图线表明数据包含缺失数据. 指定 MissingDataMethod 并且估计背景:
res = EstimatedBackground[data = TimeSeries[temp, MissingDataMethod -> {"Interpolation", InterpolationOrder -> 1}]]DateListPlot[{data, res}]diff = TimeSeriesThread[Subtract[#[[1]], #[[2]]]&, {data, res}]DateListPlot[diff]model = TimeSeriesModelFit[TimeSeriesResample[diff]]model["Process"]属性和关系 (1)
"MovingAverage" 计算填充输入的 MovingAverage:
data = Table[Sin[i] + .1Sin[10 i], {i, 0, 2Pi, 0.01}];
r = 10;bg1 = EstimatedBackground[data, r, Method -> "MovingAverage"];
bg2 = MovingAverage[ArrayPad[data, r, "Reversed"], 2r + 1];bg1 == bg2文本
Wolfram Research (2014),EstimatedBackground,Wolfram 语言函数,https://reference.wolfram.com/language/ref/EstimatedBackground.html.
CMS
Wolfram 语言. 2014. "EstimatedBackground." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/EstimatedBackground.html.
APA
Wolfram 语言. (2014). EstimatedBackground. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/EstimatedBackground.html 年
BibTeX
@misc{reference.wolfram_2026_estimatedbackground, author="Wolfram Research", title="{EstimatedBackground}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/EstimatedBackground.html}", note=[Accessed: 14-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_estimatedbackground, organization={Wolfram Research}, title={EstimatedBackground}, year={2014}, url={https://reference.wolfram.com/language/ref/EstimatedBackground.html}, note=[Accessed: 14-September-2026]}