Filtered importance sampling