Learn R Programming

gsdensity (version 0.1.2)

vectorized_pdist: from an excellent post: https://www.r-bloggers.com/2013/05/pairwise-distances-in-r/ enhanced the speed this function is called by 'compute.kld' to quickly compute the distance between genes to grid points

Description

from an excellent post: https://www.r-bloggers.com/2013/05/pairwise-distances-in-r/ enhanced the speed this function is called by 'compute.kld' to quickly compute the distance between genes to grid points

Usage

vectorized_pdist(A, B)

Value

returns pairwise-distances

Arguments

A

matrix

B

matrix