rej_sample_from_dist: Parametric Rejection Sampling

Description Usage Arguments Value Examples

Description

Parametric Rejection Sampling

Usage

1
2
rej_sample_from_dist(distribution, param_list, type = "MC", lower = -Inf,
  upper = Inf)

Arguments

distribution

- name of distribution from which to sample

param_list

list or vector of parameters for distribution

type

"MC" for Monte Carlo or "LH" for Latin Hypercube

lower

lower bound for samples

upper

upper bound for samples

Value

function taking int > 0 returning samples from specified distribution with parameters with bounds

Examples

1
2
   rej_sample_from_dist("normal", list(mean = 0, sd = 1))(10)
   rej_sample_from_dist("normal", type = "LH",  c(0,1), lower = -1, upper = 1)(10)

alteryx/AlteryxSim documentation built on May 10, 2019, 10:26 a.m.