The cross-variance function is defined in the reference.

cross_var_pillars(x, y)

Arguments

x

A 3-dimensional array.

y

A 3-dimensional array with the same dimensions as x.

Value

A matrix.

Details

Pillar i, j of the 3-dimensional array arr is arr[i, j, ].

Examples

x <- array(1:27, dim = rep(3, 3)) y <- array(0:26, dim = rep(3, 3)) cross_var_pillars(x, y)
#> [,1] [,2] [,3] #> [1,] 54 54 54 #> [2,] 54 54 54 #> [3,] 54 54 54