avgNcut: Average Normalized N-Cut

Description Usage Arguments Value Examples

Description

This function computes the average normalized n-cut of a clustering.

Usage

1
avgNcut(g, clusters, verb = FALSE, ignore.zero = FALSE)

Arguments

g

graph object of class ELgraph, the base graph.

clusters

vector of size n. Element i indicates the cluster of node v_i.

verb

boolean value: if TRUE, the function prints the n-cut of all clusters.

ignore.zero

boolean value: if TRUE, clusters with internal degree 0 are ignored.

Value

integer: the average normalized n-cut of a clustering.

Examples

1
2
3
g = generateEdgeList(n=1000)
res = ML_RMCL(g)
avgNcut(g, res, verb = TRUE)

DavidGilgien/ML.RMCL documentation built on May 6, 2019, 1:54 p.m.