oraclesai.weights.SpatialWeights
- class SpatialWeights(w: W, definition: SpatialWeightsDefinition = None)
- A SpatialWeights instance represents a spatial weights matrix calculated for some data
and a spatial neighboring relationship specified by an instance of
SpatialWeightsDefinition
.
Methods
__init__
(w[, definition])Convert the current SpatialWeight object to its pysal representation
create
(data, sw_def)Computes a SpatialWeights object for the given data.
Creates a SpatialWeight object from an existing pysal weights object
Attributes
The class:oraclesai.weights.SpatialWeightsDefinition that describes the current spatial weights
A dictionary containing the list of neighbors' indexes for each observation
A dictionary containing the weights for each sample