Weight sample in importance sampling