Two waves with constant relative phase will be coherent. The amount of coherence can readily be measured by the interference visibility, which looks at the size of the interference fringes relative to the input waves (as the phase offset is varied); a precise mathematical definition of the degree of coherence is given by means of correlation functions. More generally, coherence describes the statistical similarity of a field (electromagnetic field, quantum wave packet etc.) at two points in space or time.