# cmdistance_RPS: This function computes the least-squares Procrustes distance... In RPS: Resistant Procrustes Superimposition

## Description

This function computes the least-squares Procrustes distance between each pair of matrices (configurations of landmarks) from the input set

## Usage

 `1` ```cmdistance_RPS(X) ```

## Arguments

 `X` The input set of nx3 matrices (objects)

## Value

The LS Procrustes distance matrix between pairs of objects

## Author(s)

Guillermo Pacheco, Viviana Ferraggine, Sebastian Torcida

## Examples

 ```1 2 3 4 5 6 7 8 9``` ```source = array(matrix(nrow = 8,ncol = 3),c(8,3,3),dimnames = NULL) source[,,1] <- matrix(c(3,0,0,3,0,1,3,1,1,3,1,0,0,0,0,0,0,1,0,1,1,0,1,0) ,nrow = 8,ncol = 3,byrow = TRUE) source[,,2] <- matrix(c(3, 0 ,0,3, 0, 0.5,3, 1 ,0.75,3 ,1 ,0,0 ,0 ,0,0, 0 ,1,0, 1, 1,0, 1, 0.25) ,nrow = 8,ncol = 3,byrow = TRUE) source[,,3] <- matrix(c(5, 2 ,1,3, 0, 1.5,3.4, 1 ,1.75,3 ,1 ,0,0 ,0 ,0,0, 2 ,1,0, 3, 1,0, 1, 0.75) ,nrow = 8,ncol = 3,byrow = TRUE) result <- RPS::robgit_RPS(source) RPS::cmdistance_RPS(result) ```

RPS documentation built on May 2, 2019, 3:29 p.m.