summaryrefslogtreecommitdiff
path: root/tests/test_sample_cdf.py
AgeCommit message (Collapse)Author
2011-09-16Move CUDA source inside chroma package, rename tests directory to testStan Seibert
2011-09-03GPU-based sampling from an arbitrary distribition.Stan Seibert
The sample_cdf() device function will draw random numbers from an arbitrary disribution given a cumulative distribution function in the form of a list of x,y points, beginning with y=0 and ending with y=1. For an example of how to convert a ROOT histogram to this form, see the unit test in test_sample_cdf.py