arrMean3 {Morpho} | R Documentation |
calculate mean of an array
Description
calculate mean of a 3D-array (e.g. containing landmarks) (fast) using the Armadillo C++ Backend
Usage
arrMean3(arr)
Arguments
arr |
|
Value
matrix of dimensions k x m
.
Note
this is the same as apply(arr, 1:2, mean)
, only faster for large configurations.
Examples
data(boneData)
proc <- ProcGPA(boneLM, silent = TRUE)
mshape <- arrMean3(proc$rotated)
[Package Morpho version 2.12 Index]