lpz_dist: Distance between latent positions

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

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

Usage

1

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

1
2
pos = matrix(rnorm(20), ncol=2)
lpz_dist(pos)

adonizetti/BLSM documentation built on May 25, 2019, 2:24 p.m.