pygeoda.JoinCountRatio

class pygeoda.JoinCountRatio(jcr)[source]

Join Count Ratio

Join count ratio is the join counts, the number of times a category is surrounded by neighbors of the same category, over the total number of neighbors after converting each category to a dummy variable.

n

the number of elements in a cluster

Type

int

neighbors

the total number of neighbors of elements in a cluster

Type

int

join_count

the total join count of elements in a cluster

Type

int

ratio

the ratio of total join count over total neighbors

Type

float

__init__(jcr)[source]

Constructor of JoinCountRatio

Parameters

jcr (Object) – An object/pointer of libgeoda JoinCountRatio class

Methods

__init__(jcr)

Constructor of JoinCountRatio