gnn_tracking.postprocessing.fastrescanner
=========================================

.. py:module:: gnn_tracking.postprocessing.fastrescanner


Classes
-------

.. autoapisummary::

   gnn_tracking.postprocessing.fastrescanner.DBSCANFastRescan


Module Contents
---------------

.. py:class:: DBSCANFastRescan(x: numpy.ndarray, max_eps: float = 1.0, *, n_jobs: int | None = None)

   Class to perform DBSCAN clustering with fast rescanning.

   :param x: Data to cluster
   :param max_eps: Maximum epsilon to use during rescanning. Set to as low
                   as possible to save time.
   :param n_jobs: The number of parallel jobs to run.


   .. py:attribute:: x


   .. py:attribute:: _max_eps
      :value: 1.0



   .. py:attribute:: _n_jobs
      :value: None



   .. py:attribute:: _distances
      :value: None



   .. py:attribute:: _edges
      :value: None



   .. py:method:: _reset_graph(max_eps: float) -> None

      Set and store the radius_neighbors graph to use for clustering.



   .. py:method:: cluster(eps: float = 1.0, min_pts: int = 1)

      Perform clustering on given data with DBSCAN

      :param eps: Epsilon to use for clustering
      :param min_pts: Minimum number of points to form a cluster



