This function implements the getData
function to
perform the online changepoint detection for the 'XS' class.
XS_update(x_new, X_recent, CUSUM, p0, w)
a new data point
matrix of w
most recent observations
tail partial sums of different lengths to be tracked online
sparsity parameter
window parameter
a list of
stat: test statistic for the 'XS' class.
X_recent: the updated X_recent matrix
CUSUM: the updated CUSUM matrix
Xie, Y. and Siegmund, D. (2013) Sequential multi-sensor change-point detection. Ann. Statist., 41, 670--692.