采样有限维向量以用作随机点积图中的潜在位置向量
参见
其他潜在位置向量采样器:sample_sphere_surface()
, sample_sphere_volume()
示例
lpvs.dir <- sample_dirichlet(n = 20, alpha = rep(1, 10))
RDP.graph.2 <- sample_dot_product(lpvs.dir)
colSums(lpvs.dir)
#> [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1