accept.reject: Martino Prob Final

Description Usage Arguments Value

Description

samples a give pdf of a random variable

Usage

1
accept.reject(n, pdf, a, b, C)

Arguments

n

is the desired number of samples

pdf

is the pdf of the random variable that you wish to sample from

a

is the lower bound of the random variable

b

is the upper bound of the random variable

C

is the number that f(x) <= C for all x

Value

the samples


VMartino97/MartinoProbFinal documentation built on May 16, 2019, 4:54 p.m.