Set gain and offset parameters.