Package it.unimi.dsi.law.stat
Class KendallAssortativity
java.lang.Object
it.unimi.dsi.law.stat.KendallAssortativity
public class KendallAssortativity extends Object
Computes Kendall's assortativities between the list of degrees of sources and targets of
arcs of a graph.
-
Constructor Summary
Constructors Modifier Constructor Description protectedKendallAssortativity() -
Method Summary
Modifier and Type Method Description static double[]compute(ImmutableGraph graph, CorrelationIndex correlationIndex)Returns the assortativities of the specified graph with respect to the provided correlation index.static voidmain(String[] arg)
-
Constructor Details
-
KendallAssortativity
protected KendallAssortativity()
-
-
Method Details
-
compute
Returns the assortativities of the specified graph with respect to the provided correlation index.- Parameters:
graph- the graph.correlationIndex- a correlation index.- Returns:
- Assortativities of
graphin the following order: (+/+, -/+, -/-, +/-, -+/-+) with respect tocorrelationIndex
-
main
-