create_target_from_shape: Create target density based on a shape

Description Usage Arguments Value

Description

This function takes a SVG file and a smoothness argument and creates all the objects to compute a log target density function that looks like the shape. The lambda parameter controls this decay of the density when going away from the shape.

Usage

1
create_target_from_shape(file_name, lambda = 1, close_paths = TRUE)

Arguments

file_name

path to a SVG file with "path" items in it.

lambda

smoothness parameter, default to 1.

close_paths

Should the path be closed automatically, i.e. last point = first point ? Default to TRUE.

Value

A list containing the log target density 'logd', a list 'algo_parameters' to be given to 'logd' at each call, and a bounding box 'bounding_box' giving the coordinates of a square encompassing the shape.


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