arma_dist: Compute the Euclidean distance matrix

View source: R/RcppExports.R

arma_distR Documentation

Compute the Euclidean distance matrix

Description

Compute the Euclidean distance matrix

Usage

arma_dist(X)

Arguments

X

matrix (tipically of N coordindates on \mathbb{R}^2 )

Value

matrix distance matrix of the elements of X

Examples

## Compute the Distance matrix of dimension (n x n)
n <- 100
p <- 2
X <- matrix(runif(n*p), nrow = n, ncol = p)
distance.matrix <- arma_dist(X)


spBPS documentation built on Oct. 25, 2024, 5:07 p.m.