uniform_noise: Take a numeric and add to it a uniformly distributed random...

Description Usage Arguments Examples

View source: R/uniform_noise.R

Description

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

Usage

1
uniform_noise(image, lower_bound = -0.3, upper_bound = 0.3)

Arguments

image

A numeric. Should be an element of an array.

lower_bound

The minimum possible value for the random number.

upper_bound

The maximum possible value for the random number.

Examples

1
2
3
4
uniform_noise(4.2, 3, 5)
uniform_noise(0.3, -1)
uniform_noise(0.55, upper_bound = 1.2)
uniform_noise(1.4)

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