System characterisation#

System characterisation: network, node and edge measures (NOCAD module 2).

Network, node and edge measures of NOCAD module 2.

Functions#

closeness_centrality(adj)

Out-, in- and total closeness of every node (MATLAB closenessCentrality).

degree(adj)

Total degree (in + out), self-loops excluded.

degree_correlation(adj)

Mean degree of the neighbors of every node (MATLAB degreeCorrel).

degree_freeman(adj)

Freeman's degree centralization \(\sum_i(d_{\max}-d_i)/((N-1)(N-2))\).

degree_in(adj)

In-degree of every node, self-loops excluded.

degree_out(adj)

Out-degree of every node, self-loops excluded.

degree_scott(adj)

Scott's normalized degree \(d_i/(2(N-1))\) for directed networks.

degree_variance(adj)

Population variance of the total degrees.

density(adj)

Density \(|\mathcal{E}|/N^2\) (self-loops are possible edges).

edge_betweenness(adj[, normalized])

Edge betweenness as a sparse matrix aligned with the adjacency matrix.

node_betweenness(adj[, normalized])

Betweenness of every node: the number of shortest paths that pass through it.

num_edges(adj)

Number of edges \(|\mathcal{E}|\) (self-loops included).

num_nodes(adj)

Number of state variables \(N\).

pagerank(adj[, alpha])

PageRank in percent, as in MATLAB pageRank.

pearson_dir(adj[, kind])

Degree assortativity of a directed network (Pearson correlation over the edges).

percent_loop_sym(adj)

Percentage of nodes with a self-loop and of edges whose reverse edge also exists.

driver_similarity(A, B)

Similarity of every pair of driver nodes (MATLAB driverSimilarity).

edge_similarity(adj)

Similarity of every pair of edges (MATLAB similarity).

endpoint_similarity(adj)

Endpoint similarity of every edge (MATLAB endpointSim).

jaccard(set1, set2)

Jaccard similarity of two sets given as boolean (or 0/1) vectors; 0 if both are empty.

reach_c(A)

MATLAB reachC: row \(i\) marks the states that node \(i\) can influence, computed from the state-transition matrix.

reach_o(A)

MATLAB reachO: row \(i\) marks the states that node \(i\) can observe.

reachability(adj)

Reachability matrix: R[i, j] is True iff \(x_j\) can be reached from \(x_i\) (every node reaches itself).

sensor_similarity(A, C)

Similarity of every pair of sensor nodes (MATLAB sensorSimilarity).

sim_weighting(dist1, dist2)

Agreement of the distances of two nodes to their common states (MATLAB simWeighting).

get_config(**overrides)

Which measures system_measures() computes (MATLAB getConfig); all by default.

measures_tables(A, B, C[, D, labels, ...])

The measures of system_measures() as pandas DataFrames.

system_measures(A, B, C[, D, config, ...])

Compute the measures of the system characterisation module.