Description Usage Arguments Value
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.
1 | create_target_from_shape(file_name, lambda = 1, close_paths = TRUE)
|
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.