 Usage:  {filtX,KG,PreviousPs,clipInd} = rlsfil(y,mu,Sig,H,F,Q,R,bs)  

 

 Input:



  y                      T x m matrix of observed time series, 

                         T is the number of observations, 

                         m is the dimension of time series 

                         

  mu                     n x 1 vector, the mean of the initial state 

                         

  Sig                    n x n covariance matrix of the initial state 

                         

  H                      m x n matrix 

                         

  F                      n x n matrix 

                         

  Q                      m x m variance-covariance matrix 

                         

  R                      n x n variance-covariance matrix 

                         

  bs                     T vector, the clipping heights ; are to be produced by calibrLS 

                         or numerical (uniform) clipping height 

                         

 Output:



  filtX                  T x n matrix of filtered time series 

                         

  KG                     T x n x m "vector" of Kalman-Gain-matrices for different times 

                         

  PreviousPs             T x n x n "vector" of P_t|t's 

                         

  clippInd               T vector of 1 (if rlsfil clipped at instance t) and 0 (else) 

                         

--------------------------------------------------------------

(C) MD*TECH Method and Data Technologies, 21.9.2000

