semnetmeas: Semantic Network Measures

semnetmeasR Documentation

Semantic Network Measures

Description

Computes the average shortest path length (ASPL), clustering coefficient(CC), and modularity (Q) of the network

Usage

semnetmeas(A, meas = c("ASPL", "CC", "Q"), weighted = FALSE)

Arguments

A

Matrix or data frame. An adjacency matrix of a network

meas

Character. Global network measures to compute. By default, computes ASPL, CC, and Q. Individual measures can be selected

weighted

Boolean. Should weighted measures be computed? Defaults to FALSE. Set to TRUE for weighted measures

Value

Returns a values for ASPL, CC, and Q

Author(s)

Alexander Christensen <alexpaulchristensen@gmail.com>

Examples

# Simulate Datasets
one <- sim.fluency(10)

# Compute similarity matrix
cos <- similarity(one, method = "cosine")

# Compute networks
net <- TMFG(cos)

# Compute global network measures
globmeas <- semnetmeas(net)


SemNeT documentation built on Aug. 12, 2023, 5:06 p.m.