pygeoda.weights.Weight¶
-
class
pygeoda.weights.
Weight
(gda_w)[source]¶ GeoDa Weight class
-
__init__
(gda_w)[source]¶ Constructor of Weight class.
- Parameters
gda_w (Object) – A libgeoda GeoDaWeight pointer
Methods
GetNeighbors
(idx)Compute neighbors of idx-th observation
SaveToFile
(out_path, layer_name, id_name, …)Save current spatial weights to a file.
SpatialLag
(idx, values)Compute spatial lag values of idx-th observation
__init__
(gda_w)Constructor of Weight class.
has_isolates
()Check if any observation has no neighbors
is_symmetric
()Check if weights matrix is symmetric
max_neighbors
()Get the maximum number of neighbors
mean_neighbors
()Get the mean number of neighbors
median_neighbors
()Get the median number of neighbors
min_neighbors
()Get minmum number of neighbors
weights_sparsity
()Get sparsity computed from weights matrix
weights_type
()Get Weights type
-