Code for estimating smoothness in fMRI data