procdist: Procrustes distance

View source: R/shapes.R

procdistR Documentation

Procrustes distance

Description

Calculates different types of Procrustes shape or size-and-shape distance between two configurations

Usage

procdist(x, y,type="full",reflect=FALSE)

Arguments

x

k x m matrix (or complex k-vector for 2D data) where k = number of landmarks and m = no of dimensions

y

k x m matrix (or complex k-vector for 2D data)

type

string indicating the type of distance; "full" full Procrustes distance, "partial" partial Procrustes distance, "Riemannian" Riemannian shape distance, "sizeandshape" size-and-shape Riemannian/Procrustes distance

reflect

Logical. If reflect = TRUE then reflection invariance is included.

Value

The distance between the two configurations.

Author(s)

Ian Dryden

References

Dryden, I.L. and Mardia, K.V. (2016). Statistical Shape Analysis, with applications in R (Second Edition). Wiley, Chichester.

See Also

procOPA,procGPA

Examples

data(gorf.dat)
data(gorm.dat)
gorf<-procGPA(gorf.dat)
gorm<-procGPA(gorm.dat)
distfull<-procdist(gorf$mshape,gorm$mshape)
cat("Full Procustes distance between mean shapes is ",distfull," \n")

shapes documentation built on Feb. 16, 2023, 8:16 p.m.