Learn R Programming

calcWOI (version 1.0.3)

buildperiodic: Builds periodic array by mirroring at side and top

Description

This function generates periodic boundaries by mirroring at side and top. The resulting array is four times larger than the incoming array.

Usage

buildperiodic(x)

Arguments

x

2D quadratic array.

Value

Returns a 2D array, which is four times larger than the incoming array.

Examples

Run this code
# NOT RUN {
x <- matrix(1:12, nrow = 4)
out <- buildperiodic(x = x)
out
# }

Run the code above in your browser using DataLab