add a numpy version of translate frequency

Not used yed.