fix rate initialized by duration

When constructing a Rate object with a duration as argument, it is the expected period duration, not a frequency.