A wrapper class for GeoDaWeight class
gda_wAn object of GeoDaWeight
is_symmetricIf weights matrix is symmetric
sparsitySparsity of weights matrix
densityDensity of weights matrix
min_neighborsMinimum number of neighbors
max_neighborsMaximum number of neighbors
num_obsNumber of observations
mean_neighborsMean number of neighbors
median_neighborsMedian number of neighbors
has_isolationsIf the weights matrix has any isolations
GetDensity()Get density computed from weights matrix
GetNeighborWeights(idx)Get weights values of neighbors for idx-th observation, idx starts from 0
GetNeighbors(idx)Get neighbors for idx-th observation, idx starts from 0
GetPointer()Get the C++ object pointer (internally used)
GetSparsity()Get sparsity computed from weights matrix
HasIsolations()Check if weights matrix has isolates, or if any observation has no neighbors
IsSymmetric()Check if weights matrix is symmetric
SaveToFile(out_path, layer_name, id_name, id_values)Save current spatial weights to a file.
out_path: The path of an output weights file
layer_name : The name of the layer of input dataset
id_name : The id name (or field name), which is an associated column contains unique values, that makes sure that the weights are connected to the correct observations in the data table.
id_values : The tuple of values of selected id_name (column/field)
SpatialLag(idx, values)Compute spatial lag values of idx-th observation, idx starts from 0
initialize(o_gda_w)Constructor with a GeoDaWeight object (internally used)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.