statsmodels.tsa.statespace.kalman_smoother.KalmanSmoother.smooth

KalmanSmoother.smooth(smoother_output=None, smooth_method=None, results=None, run_filter=True, prefix=None, complex_step=False, update_representation=True, update_filter=True, update_smoother=True, **kwargs)[source]

将卡尔曼平滑器应用于状态空间模型。

Parameters:
smoother_outputint, optional

确定要计算的卡尔曼平滑器输出。默认是所有输出(包括状态、扰动和所有协方差)。

resultsclass or object, optional

如果是一个类,那么该类会被实例化并返回,包含过滤和平滑的结果。 如果是一个对象,那么该对象会用平滑数据进行更新。 如果为None,那么会返回一个包含过滤和平滑结果的SmootherResults对象。

run_filterbool, optional

是否在平滑之前运行卡尔曼滤波器。默认值为 True。

prefixstr

数据类型的前缀。通常仅在内部使用。

Returns:
SmootherResults object

Last update: Oct 16, 2024