libpysal.weights.KNN
====================

.. currentmodule:: libpysal.weights

.. autoclass:: KNN

   
   .. automethod:: __init__

   
   .. rubric:: Methods

   .. autosummary::
   
      ~KNN.__init__
      ~KNN.asymmetry
      ~KNN.from_WSP
      ~KNN.from_adjlist
      ~KNN.from_array
      ~KNN.from_dataframe
      ~KNN.from_file
      ~KNN.from_networkx
      ~KNN.from_shapefile
      ~KNN.from_sparse
      ~KNN.full
      ~KNN.get_transform
      ~KNN.plot
      ~KNN.remap_ids
      ~KNN.reweight
      ~KNN.set_shapefile
      ~KNN.set_transform
      ~KNN.symmetrize
      ~KNN.to_WSP
      ~KNN.to_adjlist
      ~KNN.to_file
      ~KNN.to_networkx
      ~KNN.to_sparse
   
   

   
   
   .. rubric:: Attributes

   .. autosummary::
   
      ~KNN.asymmetries
      ~KNN.cardinalities
      ~KNN.component_labels
      ~KNN.diagW2
      ~KNN.diagWtW
      ~KNN.diagWtW_WW
      ~KNN.histogram
      ~KNN.id2i
      ~KNN.id_order
      ~KNN.id_order_set
      ~KNN.islands
      ~KNN.max_neighbors
      ~KNN.mean_neighbors
      ~KNN.min_neighbors
      ~KNN.n
      ~KNN.n_components
      ~KNN.neighbor_offsets
      ~KNN.nonzero
      ~KNN.pct_nonzero
      ~KNN.s0
      ~KNN.s1
      ~KNN.s2
      ~KNN.s2array
      ~KNN.sd
      ~KNN.sparse
      ~KNN.transform
      ~KNN.trcW2
      ~KNN.trcWtW
      ~KNN.trcWtW_WW
   
   