Kalman Filter¶
quantflow.ta.KalmanFilter
pydantic-model
¶
Bases: BaseModel
One-dimensional Kalman filter for time series data.
This implementation uses a simple 1D state-space model:
\[
\begin{align}
x_t &= x_{t-1} + w_t, \quad w_t \sim \mathcal{N}(0, Q) \\
z_t &= x_t + v_t, \quad v_t \sim \mathcal{N}(0, R)
\end{align}
\]
The Kalman filter estimates the hidden state \(x_t\) given noisy measurements \(z_t\). The ratio \(Q/R\) determines the smoothing behavior.
Fields:
value
¶
update
¶
Update the filter with a new value and return the smoothed result.
| PARAMETER | DESCRIPTION |
|---|---|
value
|
New noisy measurement to update the filter
TYPE:
|