pysal.explore.spaghetti.ffunction

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

Compute an F-Function

Parameters:
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.

npts : int

pointpattern.npoints

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