matrixDistance: Calculate distance between two matrices

Description Usage Arguments Value Author(s) See Also Examples

View source: R/matrixDistance.R

Description

This calculates the mean Euclidean distance between the rows of two matrices. It is used in the function pumaPCA

Usage

1
2
3
4
matrixDistance(
    matrixA
,   matrixB
)

Arguments

matrixA

the first matrix

matrixB

the second matrix

Value

A numeric giving the mean distance

Author(s)

Richard D. Pearson

See Also

Related class pumaPCA

Examples

1
2
3
if(FALSE){
	show(matrixDistance(matrix(1,2,2),matrix(2,2,2)))
}

puma documentation built on Nov. 8, 2020, 11:08 p.m.