pysal.explore.spaghetti.kfunction

pysal.explore.spaghetti.kfunction(nearest, upperbound, intensity, nsteps=10)[source]

Compute a K-Function

Parameters:
nearest : numpy.ndarray

A vector of nearest neighbor distances.

upperbound : int or float

The end value of the sequence.

intensity : float

lambda value

nsteps : int

The number of distance bands. Default is 10. Must be non-negative.

Returns:
x : numpy.ndarray

x-axis of values

y : numpy.ndarray

y-axis of values