Adding functions for quick calculation of statistics at different sample resolutions