pysal.explore.spaghetti.gfunction(nearest, lowerbound, upperbound, nsteps=10)[source]

Compute a G-Function

nearest : numpy.ndarray

A vector of nearest neighbor distances.

lowerbound : int or float

The starting value of the sequence.

upperbound : int or float

The end value of the sequence.

nsteps : int

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

x : numpy.ndarray

x-axis of values

y : numpy.ndarray

y-axis of values