lpz_distNODE: lpz_dist optimized for individual updates

Description Usage Arguments Value

Description

Compute the square root of the Euclidean distances between a specific coordinate in the latent space and all the others. The function follows almost the same approach as lpz_dist, but it is more suitable for the individual updates occurring during the simulation.

Usage

1
lpz_distNODE(Z, node, diag)

Arguments

Z

Latent positions matrix

node

Specific node in the network corresponding to the latent coordinate which will be used as reference

diag

Diagonal from t(Z)%*%Z matrix, passed to speed up the process.

Value

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


BLSM documentation built on May 2, 2019, 2:45 p.m.