Learn R Programming

rainfarmr (version 0.1)

metagauss: Generate a metagaussian field

Description

Random Fourier phases are added to the input spectrum f and an inverse FFT transform to real space is performed.

Usage

metagauss(f)

Arguments

f

matrix with complex spectral amplitudes generated with the initmetagauss() function.

Value

A metagaussian field with random Fourier phases.

Examples

Run this code
# NOT RUN {
f = initmetagauss(1.7, 64)
z = metagauss(f)
sd(z)
# [1] 1.000122
# }

Run the code above in your browser using DataLab