mixing_dict

mixing_dict(xy, normalized=False)[source]

Returns a dictionary representation of mixing matrix.

Parameters
xylist or container of two-tuples

Pairs of (x,y) items.

attributestring

Node attribute key

normalizedbool (default=False)

Return counts if False or probabilities if True.

Returns
d: dictionary

Counts or Joint probability of occurrence of values in xy.