mvtsa.preprocessing.kalman_smoother#
- mvtsa.preprocessing.kalman_smoother(Y, A, C, Q, R, x0=None, P0=None, B=None, U=None, smooth=True)[source]#
Linear Kalman filter and Rauch–Tung–Striebel smoother.
Model:
x(k+1) = A x(k) + B u(k) + w,y(k) = C x(k) + vwithw ~ N(0, Q),v ~ N(0, R). Returns the (smoothed) state estimates(T, n_x)and their covariances(T, n_x, n_x). State estimates of a first-principles model are a better basis for segmentation than raw, noisy measurements (Feil, Abonyi, Németh and Árva, 2005).