pub struct SuperclusterBuilder { /* private fields */ }
Expand description
A data class used to construct a Supercluster instance.
Implementations§
Source§impl SuperclusterBuilder
impl SuperclusterBuilder
Sourcepub fn new(num_items: usize) -> Self
pub fn new(num_items: usize) -> Self
Construct a new SuperclusterBuilder with the given number of points and default options.
Sourcepub fn new_with_options(num_items: usize, options: SuperclusterOptions) -> Self
pub fn new_with_options(num_items: usize, options: SuperclusterOptions) -> Self
Construct a new SuperclusterBuilder with the given number of points and default options.
pub fn add(&mut self, x: f64, y: f64) -> usize
Sourcepub fn finish(self) -> Supercluster
pub fn finish(self) -> Supercluster
Convert a SuperclusterBuilder to a Supercluster by running hierarchical clustering.
Auto Trait Implementations§
impl Freeze for SuperclusterBuilder
impl RefUnwindSafe for SuperclusterBuilder
impl Send for SuperclusterBuilder
impl Sync for SuperclusterBuilder
impl Unpin for SuperclusterBuilder
impl UnwindSafe for SuperclusterBuilder
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