fullseye

kalman_smooth — MATH estimation op

使い方

線形ガウス状態空間モデル x_{k+1} = F x_k + w(w ~ N(0,Q))、z_k = H x_k + v(v ~ N(0,R))の Kalman フィルタ(前向き)と Rauch–Tung–Striebel 平滑化(後ろ向き)。

z は (T, m) の観測(NaN の行は欠測として更新を飛ばす)。返り値 {"x_filt", "P_filt", "x_smooth", "P_smooth", "nll"}。 門: 平滑化の結果は、全観測と事前分布を一度に使う最小二乗(一括の MAP)と厳密に一致する。 store_predictions=False recomputes each one-step prediction during the backward pass, reducing peak memory while preserving the return contract. The default retains prediction histories and is unchanged. method="cholesky" shares one factorization between the gain and likelihood. On a measured 100,000-step case it preserved states and changed accumulated NLL by 1.75e-10. "exact" retains the original arithmetic.

ファミリ共通の入力契約(fail-closed)

mathops の全 op は入力を検証してから計算する(黙って通さない):

詳しい使い方ガイド

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(table を入力に取れる)

dynsys_poincare_section · dwt_inverse · chebyshev_eval_nd

同カテゴリ(estimation)

assign_hungarian · hist_distance · stat_ttest_paired · stat_ttest_welch · stat_ks_test · stat_chi2_gof · crlb_gaussian · mat_expm


Provenance: mathestimation.py — MATH operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.