Original implementation in R of FFF change detector, but now prechange is known
FFF_stream_jumpdetect_prechange(stream, BL, ffparams, mu0, sigma0)A vector of estimated changepoints.
The stream of observations.
The burn-in length - this won't actually be used, but is kept for historical reasons.
An unnamed list of parameters for the FFF algorithm. Consists of:
lambdaThe value of the fixed forgetting factor (FFF). Should be in the range [0,1].
pThe value of the significance threshold,
which was later renamed alpha
(in the paper, not in this function).
resettozeroA flag; if it zero, then the ffmean will be reset to zero after each change. Usually set to 1 (i.e. do not reset).
u_initThe initial value of u.
Should be set to 0.
v_initThe initial value of v.
Should be set to 0.
w_initThe initial value of w.
Should be set to 0.
ffmean_initThe initial value of the
forgetting factor mean,
ffmean.
Should be set to 0.
ffvar_initThe initial value of the
forgetting factor variance,
ffvar.
Should be set to 0.
The prechange mean, which is assumed known in this context
The prechange standard deviation, which is assumed known in this context