transformations: Calculate similarity transformations

View source: R/shapes.R

transformationsR Documentation

Calculate similarity transformations

Description

Calculate similarity transformations between configurations in two arrays.

Usage

transformations(Xrotated,Xoriginal)

Arguments

Xrotated

Input k x m x n real array of the Procrustes transformed configurations, where k is the number of points, m is the number of dimensions, and n is the sample size.

Xoriginal

Input k x m x n real array of the Procrustes original configurations, where k is the number of points, m is the number of dimensions, and n is the sample size.

Value

A list with components

translation

The translation parameters. These are the relative translations of the centroids of the individuals.

scale

The scale parameters

rotation

The rotation parameters. These are the rotations between the individuals after they have both been centred.

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

procGPA

Examples


#2D example : female and male Gorillas (cf. Dryden and Mardia, 2016)

data(gorf.dat)

Xorig <- gorf.dat
Xrotated <- procGPA(gorf.dat)$rotated

transformations(Xrotated,Xorig)


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