gaussian_noise: Take a numeric and add to it a normally distributed random...

Description Usage Arguments Examples

View source: R/gaussian_noise.R

Description

Take a numeric and add to it a normally distributed random number.

Usage

1
gaussian_noise(image, mu = 0, variance = 0.01)

Arguments

image

A numeric. Should be an element of an array.

mu

The mean of the normal distribution the random number is sampled from.

variance

The variance of the normal distribution the random number is sampled from.

Examples

1
2
3
gaussian_noise(0.8, 1, 0.4)
gaussian_noise(1, variance = 0.25)
gaussian_noise(3)

rayheberer/imgnoise documentation built on Dec. 5, 2017, 1:34 a.m.