Nathan-Cheung/ProbabilityProject: Rejection Sampling

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

Getting started

Package details

AuthorNathan Cheung
MaintainerNathan Cheung <speegled@slu.edu>
LicenseN/A
Version0.1.0
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("Nathan-Cheung/ProbabilityProject")
Nathan-Cheung/ProbabilityProject documentation built on May 31, 2019, 5:40 a.m.