Calculation of the spectral dependence of the Anderson localization criterion in a one-dimensional system with correlated diagonal disorder