added non-homogeneous Poisson sampling