Add calculation of sigma2 in one dimension