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 protected
KendallAssortativity()
-
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 void
main(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
graph
in the following order: (+/+, -/+, -/-, +/-, -+/-+) with respect tocorrelationIndex
-
main
-