ASCL.net

Astrophysics Source Code Library

Making codes discoverable since 1999

ASCL Code Record

[ascl:2412.029] lintsampler: Efficient random sampling via linear interpolation

lintsampler performs linear interpolant sampling to create a set of sample points from a density function. The code uses the evaluation of the density at the two endpoints of 1D interval, or the four corners of a 2D rectangle, or generally the 2k vertices of a dimensional hyperbox (or a series of such hyperboxes, e.g., the cells of a k-dimensional grid) to draw random samples within the hyperbox. lintsampler works by evaluating a given PDF on the nodes of a grid (or grid-like structure, such as a tree); the number of evaluations (and memory occupancy) grows exponentially with the number of dimensions.

Code site:
https://github.com/aneeshnaik/lintsampler
Used in:
https://ui.adsabs.harvard.edu/abs/2024arXiv241111972G
Described in:
https://ui.adsabs.harvard.edu/abs/2024JOSS....9.6906N
Bibcode:
2024ascl.soft12029N

Views: 69

ascl:2412.029
Add this shield to your page
Copy the above HTML to add this shield to your code's website.