pub enum DegeneracyRate {
None,
Rare,
Occasional,
Frequent,
}Expand description
Fraction of inputs that are exactly degenerate.
The tiers span the range that matters: clean data, the incidental degeneracies of authored CAD models, the systematic ones of grid-aligned architecture, and a stress tier well past anything real.
Variants§
None
No degenerate inputs.
Rare
One in ten thousand.
Occasional
One in a hundred.
Frequent
One in ten.
Implementations§
Source§impl DegeneracyRate
impl DegeneracyRate
Sourcepub const ALL: [DegeneracyRate; 4]
pub const ALL: [DegeneracyRate; 4]
Every tier, ascending.
Sourcepub fn is_degenerate(self, index: usize) -> bool
pub fn is_degenerate(self, index: usize) -> bool
Whether the sample at index should be degenerate.
Deterministic striping rather than a random draw, so a given index is degenerate in every run and a regression is reproducible.
Trait Implementations§
Source§impl Clone for DegeneracyRate
impl Clone for DegeneracyRate
Source§fn clone(&self) -> DegeneracyRate
fn clone(&self) -> DegeneracyRate
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DegeneracyRate
impl Debug for DegeneracyRate
Source§impl PartialEq for DegeneracyRate
impl PartialEq for DegeneracyRate
impl Copy for DegeneracyRate
impl Eq for DegeneracyRate
impl StructuralPartialEq for DegeneracyRate
Auto Trait Implementations§
impl Freeze for DegeneracyRate
impl RefUnwindSafe for DegeneracyRate
impl Send for DegeneracyRate
impl Sync for DegeneracyRate
impl Unpin for DegeneracyRate
impl UnwindSafe for DegeneracyRate
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