Generates a 2D exponential distribution, with an optional argument to take the exponential to a user-defined power.
generate_2d_exponential(falloff = 1, dim = c(11, 11), width = 3)
Default 1
. Falloff of the exponential.
Default c(11, 11)
. The dimensions of the matrix.
Default 3
(-10
to 10
). The range in which to compute the distribution.
#if(interactive()){
image(generate_2d_exponential(1,31,3), asp=1)
#end}