compute_associations

Function compute_associations 

Source
pub fn compute_associations(
    events: &mut [Trace],
    rules: &AssociationRules,
    start_index: usize,
)
Expand description

Compute associations for traces starting from a given index. This is a standalone function that can be used by any code that has a &mut [Trace].

§Arguments

  • events - Mutable slice of traces to compute associations for
  • rules - The association rules to use for matching
  • start_index - Index to start computing from (useful for incremental batch processing)

§Note

When processing new batches, pass start_index = max(0, new_batch_start - LOOKBACK_WINDOW) to handle cases where parent/child relationships span across batches.