lpz_distNODE {BLSM}R Documentation

lpz_dist optimized for individual updates

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

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


[Package BLSM version 0.1.0 Index]