Learn R Programming

SCIntRuler (version 0.99.6)

crossdist: Cross-Distance Matrix Calculation

Description

Computes the pairwise Euclidean distance between rows of two matrices.

Usage

crossdist(m1, m2)

Value

Numeric matrix of distances.

Arguments

m1

Numeric matrix.

m2

Numeric matrix.

Examples

Run this code
mat1 <- matrix(1:4, ncol = 2)
mat2 <- matrix(5:8, ncol = 2)
dist_matrix <- crossdist(mat1, mat2)

Run the code above in your browser using DataLab