R: Generate 2D Gaussian Distribution

generate_2d_gaussian {rayimage} | R Documentation

## Generate 2D Gaussian Distribution

### Description

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

### Usage

    generate_2d_gaussian(sd = 1, power = 1, dim = c(11, 11), width = 3)

### Arguments

`sd` | Default `1`. Standard deviation of the normal distribution
`power` | Default `1`. Power to take the distribution. Higher values will result in a sharper peak.
`dim` | Default `c(11, 11)`. The dimensions of the matrix.
`width` | Default `3` (`-10` to `10`). The range in which to compute the distribution.

### Examples

    image(generate_2d_gaussian(1,1,31), asp=1)

[Package rayimage version 0.5.1 Index]