Gain-of-f