pub struct Archive {
pub xs: Vec<Vec<Number>>,
pub fs: Vec<Number>,
/* private fields */
}Expand description
Accepted minima plus the dedup test.
Fields§
§xs: Vec<Vec<Number>>§fs: Vec<Number>Implementations§
Source§impl Archive
impl Archive
pub fn new(dedup: Number, l: Vec<Number>) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn is_known(&self, x: &[Number]) -> bool
pub fn is_known(&self, x: &[Number]) -> bool
Is x within dedup of any already-accepted minimum?
Sourcepub fn near_any(&self, x: &[Number], radius: Number) -> bool
pub fn near_any(&self, x: &[Number], radius: Number) -> bool
Is x within radius of any accepted minimum (MLSL clustering)?
pub fn add(&mut self, x: Vec<Number>, f: Number)
Sourcepub fn order_by_objective(&self) -> Vec<usize>
pub fn order_by_objective(&self) -> Vec<usize>
Indices of the accepted minima ordered by ascending objective.
Auto Trait Implementations§
impl Freeze for Archive
impl RefUnwindSafe for Archive
impl Send for Archive
impl Sync for Archive
impl Unpin for Archive
impl UnsafeUnpin for Archive
impl UnwindSafe for Archive
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T, U> Imply<T> for U
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more