pub struct KMedoids { /* private fields */ }Expand description
PAM: like k-means, but each cluster is represented by an actual data point (its medoid)
instead of a mean, and the objective is the total distance (not squared), which makes the
result robust to outliers and lets any dissimilarity be used (see KMedoids::fit_distances).
A greedy BUILD phase picks the initial medoids, then SWAP repeatedly exchanges a medoid for a
non-medoid whenever that lowers the total cost.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KMedoids
impl RefUnwindSafe for KMedoids
impl Send for KMedoids
impl Sync for KMedoids
impl Unpin for KMedoids
impl UnsafeUnpin for KMedoids
impl UnwindSafe for KMedoids
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