Imported from https://github.com/stochastic-geometry/DPPL