Learn R Programming

rayimage (version 0.2.3)

generate_2d_exponential: Generate 2D exponential Distribution

Description

Generates a 2D exponential distribution, with an optional argument to take the exponential to a user-defined power.

Usage

generate_2d_exponential(falloff = 1, dim = 11, width = 3)

Arguments

falloff

Default 1. Falloff of the exponential.

dim

Default 11. The dimensions of the resulting square matrix.

width

Default 3 (-10 to 10). The range in which to compute the distribution.

Examples

Run this code
# NOT RUN {
image(generate_2d_exponential(1,31,3), asp=1)
# }

Run the code above in your browser using DataLab