arrMean3: calculate mean of an array

View source: R/addo.r

arrMean3R 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

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

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

Morpho documentation built on June 22, 2024, 7:19 p.m.