calc_selection_weights function

Calculate Selection Weights