arrMean3: calculate mean of an array

Description Usage Arguments Value Note Examples

View source: R/addo.r

Description

calculate mean of a 3D-array (e.g. containing landmarks) (fast) using the Armadillo C++ Backend

Usage

1
arrMean3(arr)

Arguments

arr

k x m x n dimensional numeric array

Value

matrix of dimensions k x m.

Note

this is the same as apply(arr, 1:2, mean), only faster for large configurations.

Examples

1
2
3
data(boneData)
proc <- ProcGPA(boneLM, silent = TRUE)
mshape <- arrMean3(proc$rotated)

Morpho documentation built on Sept. 9, 2021, 9:07 a.m.