Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/reference/sparse_second_order_grid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Sparse second-order grid evidence

`pyrecest.filters.sparse_second_order_grid_evidence` computes exact evidence for
finite-support second-order grid hidden Markov models. The latent state is a
sparse pair `(x[t-1], x[t])`; callers provide the initial pair lattice and sparse
transition rows.

The primitive is useful when a dense `n_states^2 x n_states` transition would be
too large, but the model has finite local support. It returns the normalized
log evidence, terminal single-state posterior, optional fixed-interval smoothed
single-state marginals, and support/cache diagnostics.

The implementation is intentionally domain-neutral: replay, map matching,
maneuvering target tracking, and other second-order grid models can supply their
own transition-row builder while sharing the same forward/backward evidence
calculation.
6 changes: 6 additions & 0 deletions src/pyrecest/filters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@
"sticky_mode_transition_matrix": ".discrete_state",
"uniform_log_probabilities": ".discrete_state",
"uniform_probabilities": ".discrete_state",
"SparsePairInitializer": ".sparse_second_order_grid",
"SparsePairTransitionCacheKeyBuilder": ".sparse_second_order_grid",
"SparsePairTransitionRowBuilder": ".sparse_second_order_grid",
"SparseSecondOrderGridResult": ".sparse_second_order_grid",
"SparseTransitionRows": ".sparse_second_order_grid",
"sparse_second_order_grid_evidence": ".sparse_second_order_grid",
"DecorrelatedSCGPTracker": ".gprhm_tracker",
"DecorrelatedScGpTracker": ".gprhm_tracker",
"EKFSplineTracker": ".ekf_spline_tracker",
Expand Down
Loading
Loading