Expand description
rustpix-algorithms: Clustering algorithms for hit detection.
This crate provides various clustering algorithms:
- ABS (Age-Based Spatial) - O(n) average, bucket-based primary
- DBSCAN - Density-based with noise handling
- Graph - Union-Find connected components
- Grid - Detector geometry optimized
Re-exports§
pub use spatial::SpatialGrid;
Modules§
- spatial
- Spatial indexing for efficient neighbor lookup.
Structs§
- AbsClustering
- ABS clustering implementation.
- AbsConfig
- Configuration for ABS (Age-Based Spatial) clustering.
- AbsState
- Reusable ABS clustering state for streaming or repeated runs.
- Algorithm
Params - Algorithm-specific tuning parameters.
- Cluster
AndExtract Stream - Iterator that clusters and extracts each incoming batch.
- Clustering
Config - Configuration for clustering algorithms.
- Clustering
Statistics - Statistics from a clustering operation.
- Dbscan
Clustering - DBSCAN clustering implementation.
- Dbscan
Config - Configuration for DBSCAN clustering.
- Dbscan
State - Reusable DBSCAN clustering state buffers.
- Grid
Clustering - SoA-optimized grid clustering implementation.
- Grid
Config - Configuration for grid-based clustering.
- Grid
State - Reusable grid clustering state.
Enums§
- Clustering
Algorithm - Supported clustering algorithms.
Functions§
- cluster_
and_ extract - Cluster hits in-place, then extract neutrons using the configured algorithm.
- cluster_
and_ extract_ batch - Cluster hits in-place, then extract neutrons into a
NeutronBatch. - cluster_
and_ extract_ stream - Cluster hits in batches, then extract and append neutrons into a single batch.
- cluster_
and_ extract_ stream_ iter - Create a streaming cluster-and-extract iterator.