Measurement of ƒ(α) from scaling of histograms, and applications to dynamical systems and fully developed turbulence