spec_repr: Spectral Representation

View source: R/spectral.R

spec_reprR Documentation

Spectral Representation

Description

Provides a spectral representation of the network (with regularization) based on the adjacency or Laplacian matrices

Usage

spec_repr(A, K, type = "lap", tau = 0.25, ignore_first_col = FALSE)

Arguments

A

Adjacency matrix (n x n)

K

Number of communities

type

("lap" | "adj" | "adj2") Whether to use Laplacian or adjacency-based spectral clustering

tau

Regularization parameter for the Laplacian

ignore_first_col

whether to ignore the first eigen vector

Value

The n x K matrix resulting from a spectral embedding of the network into R^K


aaamini/nett documentation built on Nov. 12, 2022, 6:25 p.m.