For a 3-dimensional array mat3d
, pillar ij
is defined as mat3d[i, j, ]
.
This function computes the brightness of each pillar. Brightness is variance / mean
.
brightness_pillars(arr3d, parallel = FALSE)
A 3-dimensional array.
Do you want to parallelize the computation across multiple
cores? If so, set this to the number of cores that you would like to use,
or set it to TRUE
to use all available cores.
A matrix where element i,j
is equal to var(mat3d[i, j, ]) / mean(mat3d[i, j, ])
.
# NOT RUN {
aaa <- array(1:16, dim = c(2, 2, 4))
brightness_pillars(aaa)
# }
Run the code above in your browser using DataLab