pub struct ClusteringConfig {
pub radius: f64,
pub temporal_window_ns: f64,
pub min_cluster_size: u16,
pub max_cluster_size: Option<u16>,
}Expand description
Configuration for clustering algorithms.
This is a generic configuration that all clustering algorithms accept. Algorithm-specific configurations extend this.
Fields§
§radius: f64Spatial radius for neighbor detection (pixels).
temporal_window_ns: f64Temporal correlation window (nanoseconds).
min_cluster_size: u16Minimum cluster size to keep.
max_cluster_size: Option<u16>Maximum cluster size (None = unlimited).
Implementations§
Source§impl ClusteringConfig
impl ClusteringConfig
Sourcepub fn venus_defaults() -> Self
pub fn venus_defaults() -> Self
Create VENUS/SNS default configuration.
Sourcepub fn window_tof(&self) -> u32
pub fn window_tof(&self) -> u32
Temporal window in TOF units (25ns).
Sourcepub fn with_radius(self, radius: f64) -> Self
pub fn with_radius(self, radius: f64) -> Self
Set spatial radius.
Sourcepub fn with_temporal_window_ns(self, window_ns: f64) -> Self
pub fn with_temporal_window_ns(self, window_ns: f64) -> Self
Set temporal window.
Sourcepub fn with_min_cluster_size(self, size: u16) -> Self
pub fn with_min_cluster_size(self, size: u16) -> Self
Set minimum cluster size.
Sourcepub fn with_max_cluster_size(self, size: u16) -> Self
pub fn with_max_cluster_size(self, size: u16) -> Self
Set maximum cluster size.
Trait Implementations§
Source§impl Clone for ClusteringConfig
impl Clone for ClusteringConfig
Source§fn clone(&self) -> ClusteringConfig
fn clone(&self) -> ClusteringConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClusteringConfig
impl Debug for ClusteringConfig
Auto Trait Implementations§
impl Freeze for ClusteringConfig
impl RefUnwindSafe for ClusteringConfig
impl Send for ClusteringConfig
impl Sync for ClusteringConfig
impl Unpin for ClusteringConfig
impl UnwindSafe for ClusteringConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more