affinity_matrix: Construct an affinity matrix for a graph g based on the dist...

Description Usage Arguments Value

Description

Construct an affinity matrix for a graph g based on the dist edge attribute

Usage

1
affinity_matrix(g, sigma = 1, pop_weights = FALSE)

Arguments

g

an igraph::graph with a dist edge attribute/

sigma

the multiplicative constant in the quadratic exponential affinity kernel

Value

a matrix containing the affinities computed with the quadratic exponential affinity kernel


PhilChodrow/compositional-complexity documentation built on May 8, 2019, 1:33 a.m.