pub struct PartScore {
pub cut: u64,
pub imbalance: f64,
pub halo_fraction: f64,
}Expand description
Cut, imbalance, and halo fraction of one assignment.
Fields§
§cut: u64Sum of undirected edge weights whose ends lie in different parts.
imbalance: f64Heaviest part weight divided by the mean part weight.
Equal empty parts score 1.
halo_fraction: f64Largest ghost / owned ratio over parts that own a cell.
A part that owns nothing is skipped. No owned cell scores 0.
Trait Implementations§
impl Copy for PartScore
impl StructuralPartialEq for PartScore
Auto Trait Implementations§
impl Freeze for PartScore
impl RefUnwindSafe for PartScore
impl Send for PartScore
impl Sync for PartScore
impl Unpin for PartScore
impl UnsafeUnpin for PartScore
impl UnwindSafe for PartScore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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