Struct dahl_salso::clustering::WorkingClustering [−][src]
pub struct WorkingClustering { /* fields omitted */ }
Implementations
pub fn random_as_rf<T: Rng>(
n_items: usize,
max_clusters: LabelType,
max_clusters_observed: LabelType,
rng: &mut T
) -> Self
Safety
There is no checking for the item_index
.
pub fn assign<T: CMLossComputer>(
&mut self,
item_index: usize,
label: LabelType,
loss_computer: &mut T,
cms: &mut Array3<CountType>,
draws: &Clusterings
)
pub fn reassign<T: CMLossComputer>(
&mut self,
item_index: usize,
new_label: LabelType,
loss_computer: &mut T,
cms: &mut Array3<CountType>,
draws: &Clusterings
)
pub fn remove<T: CMLossComputer>(
&mut self,
item_index: usize,
loss_computer: &mut T,
cms: &mut Array3<CountType>,
draws: &Clusterings
)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for WorkingClustering
impl Send for WorkingClustering
impl Sync for WorkingClustering
impl Unpin for WorkingClustering
impl UnwindSafe for WorkingClustering
Blanket Implementations
Mutably borrows from an owned value. Read more