exp_sampling: Sample from a Piece-wise Exponential function

Description Usage Arguments Value

View source: R/utils.R

Description

Generate a sample of length n from the current data and the function h

Usage

1

Arguments

n

number of samples

data

data structure output from the initialization_step function

h

log density function

Value

a vector of length n of samples from a piece-wise exponential corresponding to function h


vdchoi/ars documentation built on Jan. 1, 2021, 12:36 p.m.