init_abscissa: Initialize Abscissas

Description Usage Arguments Value

View source: R/utils.R

Description

Initialize the abscissas (x vector), based on the function domain D. If D is bounded, select xs with equal distances, excluding the bounds If D is left/right unbounded, select first/last x based on h's derivative values

Usage

1
init_abscissa(h, a, b, init_k = 20)

Arguments

h

log density function

a

lower bound of function domain D (could be -Inf)

b

upper bound of function domain D (could be Inf)

init_k

number of xs in the initial abscissa, default is 20

Value

a vector consisting of all xs in the abscissa


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