Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

detrendr (version 0.1.0)

brightness_pillars: Get the brightness of pillars of a 3d array.

Description

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.

Usage

brightness_pillars(arr3d, parallel = FALSE)

Arguments

arr3d

A 3-dimensional array.

parallel

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.

Value

A matrix where element i,j is equal to var(mat3d[i, j, ]) / mean(mat3d[i, j, ]).

Examples

Run this code
# NOT RUN {
aaa <- array(1:16, dim = c(2, 2, 4))
brightness_pillars(aaa)

# }

Run the code above in your browser using DataLab