Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

arrMean3

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

Calculations and Visualisations Related to Geometric Morphometrics

v2.8
GPL-2
Authors
Stefan Schlager [aut, cre, cph], Gregory Jefferis [ctb], Dryden Ian [cph]
Initial release
2020-02-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.