create_target_from_word: Create target density based on a word

Description Usage Arguments Value

Description

This function takes a word and a smoothness argument and creates all the objects to compute a log target density function that looks like the letter. The target density function is equal to 1 on the shape of the letters, and decreases to 0 far away from the letters. The lambda parameter controls this decay.

Usage

1
create_target_from_word(word, lambda = 1)

Arguments

word

a character vector made of letters or LETTERS.

lambda

smoothness parameter, default to 1.

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 word.


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