Skip to main content

cluster_and_extract

Function cluster_and_extract 

Source
pub fn cluster_and_extract(
    batch: &mut HitBatch,
    algorithm: ClusteringAlgorithm,
    clustering: &ClusteringConfig,
    extraction: &ExtractionConfig,
    params: &AlgorithmParams,
) -> Result<Vec<Neutron>>
Expand description

Cluster hits in-place, then extract neutrons using the configured algorithm.

ยงErrors

Returns an error if clustering or extraction fails.