LMK_euD: Euclidean Distance

Description Usage Arguments Value Examples

View source: R/package-support.R

Description

Calculate Euclidean distance between two sets of 3D landmark data. Data should be in the typical p x k x n array.

Usage

1
LMK_euD(A1, A2)

Arguments

A1

A 3D landmark array in the form p x k x n

A2

A second 3D landmark array in the form p x k x n

Value

Returns a list (3L) containing the direct Euclidean distance for all individuals/landmarks, as well as summarized by individual and landmark

Examples

1
2
3
4
5
6
lmks1 <- cbind(1:10, 1:10, 1:10)
lmks2 <- lmks1*10

LMK_euD(lmks1,lmks2) ## distance between each landmark (1 through 10)

LMK_euD(lmks1[1,], lmks2[1,]) ## distance between a single landmark

ehrlichd/lmkCHK documentation built on Sept. 30, 2020, 3:06 a.m.