net_enn: Construct an epsilon-network from a distance matrix.

View source: R/tss_to_net.R

net_ennR Documentation

Construct an epsilon-network from a distance matrix.

Description

Construct an epsilon-network from a distance matrix.

Usage

net_enn(
  D,
  eps,
  treat_NA_as = 1,
  is_dist_symetric = TRUE,
  weighted = FALSE,
  invert_dist_as_weight = TRUE,
  add_col_rownames = TRUE
)

Arguments

D

Distance matrix

eps

the threshold value to be considered a link. Only values lower or equal to epsilon become 1.

treat_NA_as

A numeric value, usually 1, that represent NA values in the distance matrix

is_dist_symetric

Boolean, TRUE (default) if dist is symmetric

weighted

Boolean, TRUE will create a weighted network

invert_dist_as_weight

Boolean, if weighted == TRUE, then the weights become 1 - distance. This is the default behavior since most network measures interpret higher weights as stronger connection.

add_col_rownames

Boolean. If TRUE (default), it uses the column and row names from dist matrix as node labels.

Value

a igraph network


ts2net documentation built on June 9, 2022, 9:06 a.m.