SG function

General Selection Gain Function