Package it.unimi.dsi.law.stat
Class PearsonAssortativity
java.lang.Object
it.unimi.dsi.law.stat.PearsonAssortativity
public class PearsonAssortativity extends Object
Computes Pearson assortativities between the list of degrees of sources and targets of
arcs of a graph.
-
Constructor Summary
Constructors Modifier Constructor Description protectedPearsonAssortativity() -
Method Summary
Modifier and Type Method Description static double[]compute(ImmutableGraph graph)Returns the Pearson assortativities of the specified graph.static double[]computeAlt(ImmutableGraph graph)static voidmain(String[] arg)
-
Constructor Details
-
PearsonAssortativity
protected PearsonAssortativity()
-
-
Method Details
-
compute
Returns the Pearson assortativities of the specified graph.- Parameters:
graph-- Returns:
- Pearson assortativities of
graphin the following order: (+/+, -/+, -/-, +/-, -+/-+).
-
computeAlt
-
main
-