Feed one chunk (X_chunk, Y_chunk) to an existing KF-PLS state created by
kf_pls_state_new(). The function updates exponentially weighted means and
cross-products (or exact sufficient statistics when in exact mode).
kf_pls_state_update(state, X_chunk, Y_chunk)Invisibly returns state, updated in place.
External pointer produced by kf_pls_state_new().
Numeric matrix with the same number of columns p used to
create the state.
Numeric matrix with m columns (or a numeric vector if
m == 1). Must have the same number of rows as X_chunk.
Call this repeatedly for each incoming batch. When you want model
coefficients (weights/loadings/intercepts), call
kf_pls_state_fit(), which solves SIMPLS on the accumulated
cross-moments without re-materializing all past data.
kf_pls_state_new(), kf_pls_state_fit()