shape_proc_distance: Calculates Procrustes distances for all nC2 combinations of a...

Description Usage Arguments Value Author(s) Examples

Description

Adapted from "shapes" package by Ian L. Dryden <ian.dryden@nottingham.ac.uk>

Usage

1
shape_proc_distance(x, type = "full", reflect = FALSE)

Arguments

x

3-dimensional array of shapes. Every zth element should be a different shape.

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

A matrix of all calculated distance. Each distance is labeled by the shapes used for calculation.

Author(s)

Goutham Swaminathan goutham1220@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
bone_shapes = bone_list$x
bone_shapes = cbind(bone_shapes, bone_list$y)
bone_1 = bone_shapes[1:100,]
bone_2 = bone_shapes[101:200,]
bone_3 = bone_shapes[201:300,]
bones = array(c(bone_1, bone_2, bone_3), dim = c(100, 2, 3))
shape_proc_distance(bones, type = "full")

## End(Not run)

goutham1220/shipshape documentation built on May 21, 2019, 10:11 a.m.