Skip to main content

ComputeMedoid

Trait ComputeMedoid 

Source
pub trait ComputeMedoid: Sized {
    // Required method
    fn compute_medoid(data: MatrixView<'_, Self>) -> Vec<Self>;
}
Expand description

Return the row in data that is closest to the medoid of all rows.

Required Methods§

Source

fn compute_medoid(data: MatrixView<'_, Self>) -> Vec<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ComputeMedoid for f32

Source§

fn compute_medoid(data: MatrixView<'_, Self>) -> Vec<Self>

Source§

impl ComputeMedoid for i8

Source§

fn compute_medoid(data: MatrixView<'_, Self>) -> Vec<Self>

Source§

impl ComputeMedoid for u8

Source§

fn compute_medoid(data: MatrixView<'_, Self>) -> Vec<Self>

Source§

impl ComputeMedoid for f16

Source§

fn compute_medoid(data: MatrixView<'_, Self>) -> Vec<Self>

Implementors§