log_shape_density: Log target density function from shape

Description Usage Arguments Value

Description

This function takes a point and a list of arguments and returns the value of the log density function.

Usage

1
log_shape_density(x, algo_parameters)

Arguments

x

a mx2 matrix of points at which to evaluate the log density function.

algo_parameters

a list containing 'lambda', the smoothness parameter, and 'shape', the shape corresponding to a shape and probably created using shape_from_polygons.

Value

a vector of log density evaluations corresponding to the given points.


pierrejacob/RShapeTarget documentation built on May 25, 2019, 6:07 a.m.