Estimation of the mean for spatially dependent data belonging to a Riemannian manifold