Function to sequentially update the FF mean
update_ffmean(ffmean_old, w_new, x_new)
ffmean_old
The old (previous) value of ffmean.
ffmean
w_new
The new (current) value of w.
w
x_new
The current observation.
update_mean