shape_elastic_distance: Calculates Elastic distances for all nC2 combinations of a...

Description Usage Arguments Value Author(s) Examples

View source: R/shape_elastic_distance.R

Description

Calculates Elastic distances for all nC2 combinations of a 3-dimensional array of shapes Adapted from "fdasrvf" package by J. Derek Tucker <jdtuck@sandia.gov>

Usage

1

Arguments

x

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

mode

Open ("O") or Closed ("C") curves

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 = bones_shapes$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_elastic_distance(bones, mode = "C")

## End(Not run)

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