Add a frequency parameter

This fix issue #4 by providing a compensation in the gains for frequency changes.