[][src]Struct smartcore::cluster::kmeans::KMeansParameters

pub struct KMeansParameters {
    pub k: usize,
    pub max_iter: usize,
}

K-Means clustering algorithm parameters

Fields

k: usize

Number of clusters.

max_iter: usize

Maximum number of iterations of the k-means algorithm for a single run.

Implementations

impl KMeansParameters[src]

pub fn with_k(self, k: usize) -> Self[src]

Number of clusters.

pub fn with_max_iter(self, max_iter: usize) -> Self[src]

Maximum number of iterations of the k-means algorithm for a single run.

Trait Implementations

impl Clone for KMeansParameters[src]

impl Debug for KMeansParameters[src]

impl Default for KMeansParameters[src]

impl<T: RealNumber + Sum, M: Matrix<T>> UnsupervisedEstimator<M, KMeansParameters> for KMeans<T>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,