is_importance_weights function

Is x an importance weights vector?