Efficient random sampling via linear interpolation.
Project description
lintsampler
Efficient random sampling via linear interpolation.
When you know densities on the 2 endpoints of 1D interval, or the 4 corners of a 2D rectangle, or generally the $2^k$ vertices of a $k$-dimensional hyperbox (or a series of such hyperboxes, e.g., the cells of a $k$-dimensional grid), linear interpolant sampling provides a technique to draw random samples within the hyperbox. lintsampler
provides a Python implementation of this.
See the documentation or the linear interpolant sampling paper for further details.
Documentation
The documentation is available at https://lintsampler.readthedocs.io/.
Attribution
If using lintsampler
for a research publication, please cite our paper: link to come.
License
lintsampler
is available under the MIT license. See the LICENSE file for specifics.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for lintsampler-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5147dd2b74b1a5652886cea466811d0e2faa884d850790fb5e41e1ab7c77f8b |
|
MD5 | 1e3786e932f436bb5009989e2d8b0680 |
|
BLAKE2b-256 | ab325669025fb5e1c1616a4ffd225cd044c334cf97b06adce325671663821801 |