pub enum BoundHandling {
Reflect,
Clamp,
}Expand description
How CMA-ES repairs a drawn coordinate that lands outside a parameter’s
[0, 1] normalized box.
Variants§
Reflect
Fold the coordinate back into [0, 1] by mirroring at each bound (a
period-2 tent map). Continuous across the boundary and free of the
boundary pile-up that clamping causes — the default.
Clamp
Snap the coordinate to the nearest bound. Simple, but concentrates probability on the boundary when the optimum sits near one.
Trait Implementations§
Source§impl Clone for BoundHandling
impl Clone for BoundHandling
Source§fn clone(&self) -> BoundHandling
fn clone(&self) -> BoundHandling
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 moreimpl Copy for BoundHandling
Source§impl Debug for BoundHandling
impl Debug for BoundHandling
impl Eq for BoundHandling
Source§impl PartialEq for BoundHandling
impl PartialEq for BoundHandling
impl StructuralPartialEq for BoundHandling
Auto Trait Implementations§
impl Freeze for BoundHandling
impl RefUnwindSafe for BoundHandling
impl Send for BoundHandling
impl Sync for BoundHandling
impl Unpin for BoundHandling
impl UnsafeUnpin for BoundHandling
impl UnwindSafe for BoundHandling
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