A unified formulation of the central limit theorem for small and large deviations from the mean