joshspeagle / dynesty

Dynamic Nested Sampling package for computing Bayesian posteriors and evidences
https://dynesty.readthedocs.io/
MIT License
347 stars 76 forks source link

Minor fix to the reflective implementation #162

Closed GregoryAshton closed 4 years ago

GregoryAshton commented 4 years ago

While the previous implementation worked. It was still possible to go so far out of the unit cube that it didn't reflect properly (i.e. it was mapped to a point on the other side, outside, of the unit cube). This fixes that and ensures all points are mapped back in properly.