This package samples from a continuous random variable using rejection sampling. The user inputs the n: the number of random samples, pdf: the pdf of the random variable you wish to sample from, a: the lower bound of the random varaible, b: the upper bound of the random variable, and C: a numeric such that f(x)<=C for all values of x
Package details |
|
---|---|
Author | Nathan Cheung |
Maintainer | Nathan Cheung <speegled@slu.edu> |
License | N/A |
Version | 0.1.0 |
Package repository | View on GitHub |
Installation |
Install the latest version of this package by entering the following in R:
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.