[][src]Struct dahl_salso::clustering::WorkingClustering

pub struct WorkingClustering { /* fields omitted */ }

Implementations

impl WorkingClustering[src]

pub fn empty(n_items: usize, max_clusters: LabelType) -> Self[src]

pub fn random<T: Rng>(
    n_items: usize,
    max_clusters: LabelType,
    rng: &mut T
) -> Self
[src]

pub fn random_as_rf<T: Rng>(
    n_items: usize,
    max_clusters: LabelType,
    max_clusters_observed: LabelType,
    rng: &mut T
) -> Self
[src]

pub fn one_cluster(n_items: usize, max_clusters: LabelType) -> Self[src]

pub fn from_slice(labels: &[LabelType], max_clusters: LabelType) -> Self[src]

pub fn from_vector(labels: Vec<LabelType>, max_clusters: LabelType) -> Self[src]

pub fn n_items(&self) -> CountType[src]

pub fn occupied_clusters(&self) -> &Vec<LabelType>[src]

pub fn label_of_empty_cluster(&mut self) -> Option<LabelType>[src]

pub fn clone_labels(&self) -> Vec<LabelType>[src]

pub fn standardize(&self) -> Vec<LabelType>[src]

pub fn as_slice(&self) -> &[LabelType][src]

pub fn max_clusters(&self) -> LabelType[src]

pub fn n_clusters(&self) -> LabelType[src]

pub fn size_of(&self, label: LabelType) -> CountType[src]

pub fn get(&self, item_index: usize) -> LabelType[src]

pub unsafe fn get_unchecked(&self, item_index: usize) -> LabelType[src]

pub fn assign<T: CMLossComputer>(
    &mut self,
    item_index: usize,
    label: LabelType,
    loss_computer: &mut T,
    cms: &mut Array3<CountType>,
    draws: &Clusterings
)
[src]

pub fn reassign<T: CMLossComputer>(
    &mut self,
    item_index: usize,
    new_label: LabelType,
    loss_computer: &mut T,
    cms: &mut Array3<CountType>,
    draws: &Clusterings
)
[src]

pub fn remove<T: CMLossComputer>(
    &mut self,
    item_index: usize,
    loss_computer: &mut T,
    cms: &mut Array3<CountType>,
    draws: &Clusterings
)
[src]

Trait Implementations

impl Clone for WorkingClustering[src]

impl Debug for WorkingClustering[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> Pointable for T

type Init = T

The type for initializers.

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>,