Correlation of the inhomogeneous field as a measure of sample heterogeneity.