本文整理汇总了Python中pykalman.KalmanFilter._initialize_parameters方法的典型用法代码示例。如果您正苦于以下问题:Python KalmanFilter._initialize_parameters方法的具体用法?Python KalmanFilter._initialize_parameters怎么用?Python KalmanFilter._initialize_parameters使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pykalman.KalmanFilter
的用法示例。
在下文中一共展示了KalmanFilter._initialize_parameters方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: check_dims
# 需要导入模块: from pykalman import KalmanFilter [as 别名]
# 或者: from pykalman.KalmanFilter import _initialize_parameters [as 别名]
def check_dims(n_dim_state, n_dim_obs, kwargs):
kf = KalmanFilter(**kwargs)
(transition_matrices, transition_offsets, transition_covariance,
observation_matrices, observation_offsets, observation_covariance,
initial_state_mean, initial_state_covariance) = (
kf._initialize_parameters()
)
assert_true(transition_matrices.shape == (n_dim_state, n_dim_state))
assert_true(transition_offsets.shape == (n_dim_state,))
assert_true(transition_covariance.shape == (n_dim_state, n_dim_state))
assert_true(observation_matrices.shape == (n_dim_obs, n_dim_state))
assert_true(observation_offsets.shape == (n_dim_obs,))
assert_true(observation_covariance.shape == (n_dim_obs, n_dim_obs))
assert_true(initial_state_mean.shape == (n_dim_state,))
assert_true(
initial_state_covariance.shape == (n_dim_state, n_dim_state)
)