Converts a frequency from an initial unit to a final unit.