pub struct GeneralInformationBasedCMLossComputer<'a, T>where
T: InformationBasedLoss,{ /* private fields */ }Implementations§
Source§impl<'a, T> GeneralInformationBasedCMLossComputer<'a, T>where
T: InformationBasedLoss,
impl<'a, T> GeneralInformationBasedCMLossComputer<'a, T>where
T: InformationBasedLoss,
Trait Implementations§
Source§impl<T> CMLossComputer for GeneralInformationBasedCMLossComputer<'_, T>where
T: InformationBasedLoss,
impl<T> CMLossComputer for GeneralInformationBasedCMLossComputer<'_, T>where
T: InformationBasedLoss,
fn initialize(&mut self, state: &WorkingClustering, cms: &Array3<CountType>)
fn compute_loss( &self, _state: &WorkingClustering, _cms: &Array3<CountType>, ) -> f64
fn change_in_loss( &self, item_index: usize, to_label: LabelType, from_label_option: Option<LabelType>, state: &WorkingClustering, cms: &Array3<CountType>, draws: &Clusterings, ) -> f64
fn decision_callback( &mut self, item_index: usize, to_label_option: Option<LabelType>, from_label_option: Option<LabelType>, state: &WorkingClustering, cms: &Array3<CountType>, draws: &Clusterings, )
Auto Trait Implementations§
impl<'a, T> Freeze for GeneralInformationBasedCMLossComputer<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for GeneralInformationBasedCMLossComputer<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for GeneralInformationBasedCMLossComputer<'a, T>where
T: Send,
impl<'a, T> Sync for GeneralInformationBasedCMLossComputer<'a, T>where
T: Sync,
impl<'a, T> Unpin for GeneralInformationBasedCMLossComputer<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for GeneralInformationBasedCMLossComputer<'a, T>where
T: UnsafeUnpin,
impl<'a, T> UnwindSafe for GeneralInformationBasedCMLossComputer<'a, T>where
T: UnwindSafe,
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