pub enum Preference<'a, F>{
Median,
List(&'a Array1<F>),
Value(F),
}Expand description
Preference is the value representing the degree to which a data point will act as its own exemplar, with lower (more negative) values yielding fewer clusters.
- Median: Use median similarity value as preference
- List: Use provided preference list
- Value: Assign all members the same preference value
Variants§
Median
Use the median pairwise similarity as the preference
List(&'a Array1<F>)
Use a list of preferences, one per input
Value(F)
Use a single value as the preference for all inputs
Trait Implementations§
Source§impl<'a, F> Clone for Preference<'a, F>
impl<'a, F> Clone for Preference<'a, F>
Source§fn clone(&self) -> Preference<'a, F>
fn clone(&self) -> Preference<'a, F>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a, F> Freeze for Preference<'a, F>where
F: Freeze,
impl<'a, F> RefUnwindSafe for Preference<'a, F>where
F: RefUnwindSafe,
impl<'a, F> Send for Preference<'a, F>
impl<'a, F> Sync for Preference<'a, F>
impl<'a, F> Unpin for Preference<'a, F>where
F: Unpin,
impl<'a, F> UnsafeUnpin for Preference<'a, F>where
F: UnsafeUnpin,
impl<'a, F> UnwindSafe for Preference<'a, F>where
F: UnwindSafe + RefUnwindSafe,
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