noise_white {ambient}R Documentation

White noise generator

Description

White noise is a random noise with equal intensities at different frequencies. It is most well-known as what appeared on old televisions when no signal was found.

Usage

noise_white(dim, frequency = 0.01, pertubation = "none",
  pertubation_amplitude = 1)

Arguments

dim

The dimensions (height, width, (and depth, (and time))) of the noise to be generated. The length determines the dimensionality of the noise.

frequency

Determines the granularity of the features in the noise.

pertubation

The pertubation to use. Either 'none' (default), 'normal', or 'fractal'. Defines the displacement (warping) of the noise, with 'normal' giving a smooth warping and 'fractal' giving a more eratic warping.

pertubation_amplitude

The maximal pertubation distance from the origin. Ignored if pertubation = 'none'. Defaults to 1.

Value

If length(dim) == 2 a matrix, if length(dim) %in% c(3, 4) a 3- or 4-dimensional array.

Examples

# Basic use
noise <- noise_white(c(100, 100))

image(noise, col = grey.colors(256, 0, 1))


[Package ambient version 0.1.0 Index]