new_importance_weights function

Construct an importance weights vector