R/calc.dist.mat.R

Defines functions calc.dist.mat

#' @title Calculation of Distance matrix
#' @description Compute the pairwise distance matrix of a given set of coordinates
#' @author Stefano Motta\email{stefano.motta@unimib.it}
#' @param coord matrix of N atomic coordinates (N rows, 3 columns)
#' @return The pairwise distance matrix
#' @noRd
#'
calc.dist.mat <- function(coord){
    mat <- as.matrix(stats::dist(coord), method='euclidean', upper=TRUE, diag=TRUE)
    return(mat)
}

Try the SOMMD package in your browser

Any scripts or data that you put into this service are public.

SOMMD documentation built on Oct. 2, 2024, 5:07 p.m.