Module utils

Module utils 

Source
Expand description

Utility functions for multi-target tracking

Component pruning, merging, and state extraction utilities.

Structs§

ExtractionConfig
Configuration for state extraction.
PruningConfig
Configuration for pruning and merging operations.
TargetEstimate
A target state estimate with associated uncertainty.

Enums§

ExtractionMethod
Extraction method for converting mixtures to point estimates.

Functions§

cap_total_weight
Caps the total weight at a maximum value.
estimate_cardinality
Estimates the number of targets from a mixture.
extract_by_threshold
Extracts components with weight above threshold.
extract_local_maxima
Extracts local maxima (components that are not close to higher-weighted components).
extract_local_maxima_with_dist
Extracts local maxima with a configurable merge distance.
extract_targets
Extracts target estimates from a Gaussian mixture.
extract_top_n
Extracts the N highest-weighted components.
mahalanobis_distance_squared
Computes the squared Mahalanobis distance between two Gaussian components.
merge_components
Merges two Gaussian components into one.
merge_nearby
Merges nearby components based on Mahalanobis distance.
mixture_covariance
Computes the spread (covariance) of the mixture.
mixture_mean
Computes the mean state from a mixture (treating all components equally).
normalize_weights
Normalizes component weights to sum to a target value.
prune_and_merge
Applies full pruning pipeline: weight threshold, merge, truncate.
prune_by_weight
Prunes components with weight below a threshold.
truncate
Truncates the mixture to keep only the top N components by weight.