pub struct EuclideanClusterConfig {
pub cluster_tolerance: f32,
pub min_cluster_size: usize,
pub max_cluster_size: usize,
}Expand description
Configuration for Euclidean clustering.
Fields§
§cluster_tolerance: f32Maximum distance between points in the same cluster.
min_cluster_size: usizeMinimum number of points required to form a cluster.
max_cluster_size: usizeMaximum number of points allowed in a cluster.
Implementations§
Source§impl EuclideanClusterConfig
impl EuclideanClusterConfig
Sourcepub const fn with_tolerance(
cluster_tolerance: f32,
min_cluster_size: usize,
) -> Self
pub const fn with_tolerance( cluster_tolerance: f32, min_cluster_size: usize, ) -> Self
Creates a config with the given tolerance and minimum cluster size.
Trait Implementations§
Source§impl Clone for EuclideanClusterConfig
impl Clone for EuclideanClusterConfig
Source§fn clone(&self) -> EuclideanClusterConfig
fn clone(&self) -> EuclideanClusterConfig
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 EuclideanClusterConfig
impl Debug for EuclideanClusterConfig
Source§impl Default for EuclideanClusterConfig
impl Default for EuclideanClusterConfig
Source§impl PartialEq for EuclideanClusterConfig
impl PartialEq for EuclideanClusterConfig
impl Copy for EuclideanClusterConfig
impl StructuralPartialEq for EuclideanClusterConfig
Auto Trait Implementations§
impl Freeze for EuclideanClusterConfig
impl RefUnwindSafe for EuclideanClusterConfig
impl Send for EuclideanClusterConfig
impl Sync for EuclideanClusterConfig
impl Unpin for EuclideanClusterConfig
impl UnsafeUnpin for EuclideanClusterConfig
impl UnwindSafe for EuclideanClusterConfig
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