Learn R Programming

rainfarmr (version 0.1)

gaussianize: Gaussianize field using rank ordering

Description

The amplitudes of the input field are rank ordered and substituted with the corresponding rank-ordered samples from a Normal distribution.

Usage

gaussianize(z)

Arguments

z

matrix containing the input field to be Gaussianized.

Value

The Gaussianized field with the same dimensions as the input field.

Examples

Run this code
# NOT RUN {
# Make some sample synthetic rainfall data
r <- exp(rnorm(64 * 64))
dim(r) <- c(64, 64)
# Gaussianize and check standard deviation
g <- gaussianize(r)
sd(g)
# [1] 1
# }

Run the code above in your browser using DataLab