resolution function

Compute the "resolution" of a data vector.