I don't think the function name is correct, since it doesn't necessarily return the rest frequency (could be wavelength)