Learn R Programming

BLSM (version 0.1.0)

lpz_dist: Distance between latent positions

Description

Compute the square root of the Euclidean distances between latent positions and return them with a negative sign.

Usage

lpz_dist(Z)

Arguments

Z

Latent positions matrix. The matrix size must be (n,k), where n and k denote respectively the number of nodes in the network and the latent space dimensionality.

Value

Matrix containing the negative square root of the Euclidean distances between latent positions

Examples

Run this code
# NOT RUN {
pos = matrix(rnorm(20), ncol=2)
lpz_dist(pos)
# }

Run the code above in your browser using DataLab