pub struct DistShape {
pub unique: usize,
pub evenness: f32,
pub gini: f32,
}Fields§
§unique: usizeNumber of distinct values (richness).
evenness: f32Pielou evenness of the value frequencies in [0, 1] — how uniformly the
population is spread across distinct fitness values. Low evenness means
the population has piled onto a few scores (premature convergence).
gini: f32Gini coefficient of the distribution in [0, 1] — fitness inequality /
selection pressure. 0 = every member shares the same score, → 1 = one
member dominates.
Auto Trait Implementations§
impl Freeze for DistShape
impl RefUnwindSafe for DistShape
impl Send for DistShape
impl Sync for DistShape
impl Unpin for DistShape
impl UnsafeUnpin for DistShape
impl UnwindSafe for DistShape
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