pub struct Front<T>where
T: Scored,{ /* private fields */ }Implementations§
Source§impl<T> Front<T>where
T: Scored,
impl<T> Front<T>where
T: Scored,
pub fn new(range: Range<usize>, objective: Objective) -> Self
pub fn len(&self) -> usize
pub fn range(&self) -> Range<usize>
pub fn objective(&self) -> Objective
pub fn is_empty(&self) -> bool
pub fn values(&self) -> &[Arc<T>]
pub fn crowding_distance(&mut self) -> Option<&[f32]>
pub fn entropy(&mut self) -> Option<f32>
pub fn add_all(&mut self, items: Vec<T>) -> FrontAddResult
Sourcepub fn remove_outliers(&mut self, trim: f32) -> Option<usize>
pub fn remove_outliers(&mut self, trim: f32) -> Option<usize>
Remove points with crowding distance in the top trim fraction.
Example: trim=0.02 removes the top 2% most isolated points.
pub fn fronts(&mut self) -> Vec<Front<T>>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Front<T>
impl<T> RefUnwindSafe for Front<T>where
T: RefUnwindSafe,
impl<T> Send for Front<T>
impl<T> Sync for Front<T>
impl<T> Unpin for Front<T>
impl<T> UnsafeUnpin for Front<T>
impl<T> UnwindSafe for Front<T>where
T: 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