Generalized resampled importance sampling | Synapse