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() -> ClusteringConfig
pub fn venus_defaults() -> ClusteringConfig
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) -> ClusteringConfig
pub fn with_radius(self, radius: f64) -> ClusteringConfig
Set spatial radius.
Sourcepub fn with_temporal_window_ns(self, window_ns: f64) -> ClusteringConfig
pub fn with_temporal_window_ns(self, window_ns: f64) -> ClusteringConfig
Set temporal window.
Sourcepub fn with_min_cluster_size(self, size: u16) -> ClusteringConfig
pub fn with_min_cluster_size(self, size: u16) -> ClusteringConfig
Set minimum cluster size.
Sourcepub fn with_max_cluster_size(self, size: u16) -> ClusteringConfig
pub fn with_max_cluster_size(self, size: u16) -> ClusteringConfig
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
Source§impl Default for ClusteringConfig
impl Default for ClusteringConfig
Source§fn default() -> ClusteringConfig
fn default() -> ClusteringConfig
Returns the “default value” for a type. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more