sample: sample

Description Usage Arguments Value Examples

Description

samples n points

Usage

1
sample(n = 1000, init_l = -1, init_r = 1, squeeze = TRUE)

Arguments

n

represent the number of samples we want to create

init_l

the left initial starting point for the ARS algorithm

init_r

the right initial starting point for the ARS algorithm

squeeze

a boolean implementing the squeezing test check or not.

Value

a vector of length n

Examples

1
n_samples = ars$new(dnorm)$sample(n=5000)

andrea2910/ars documentation built on May 17, 2019, 3:13 a.m.