pub struct MeanShiftResult {
pub labels: Vec<usize>,
pub n_clusters: usize,
pub centers: Vec<Vec<f64>>,
}Expand description
Outcome of a mean-shift run.
Fields§
§labels: Vec<usize>Cluster id per input point, in input order.
n_clusters: usizeNumber of distinct modes (clusters) discovered.
centers: Vec<Vec<f64>>The discovered cluster centers (modes), one per cluster.
Trait Implementations§
Source§impl Clone for MeanShiftResult
impl Clone for MeanShiftResult
Source§fn clone(&self) -> MeanShiftResult
fn clone(&self) -> MeanShiftResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MeanShiftResult
impl RefUnwindSafe for MeanShiftResult
impl Send for MeanShiftResult
impl Sync for MeanShiftResult
impl Unpin for MeanShiftResult
impl UnsafeUnpin for MeanShiftResult
impl UnwindSafe for MeanShiftResult
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