pub struct CouplingPair {
pub node_a: NodeId,
pub node_b: NodeId,
pub co_changes: usize,
pub coupling_score: f64,
}Expand description
Coupling between two nodes based on co-modification frequency.
Fields§
§node_a: NodeIdFirst node.
node_b: NodeIdSecond node.
co_changes: usizeNumber of times both changed in the same event.
coupling_score: f64Coupling score: co_changes / max(changes_a, changes_b).
Trait Implementations§
Source§impl Clone for CouplingPair
impl Clone for CouplingPair
Source§fn clone(&self) -> CouplingPair
fn clone(&self) -> CouplingPair
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CouplingPair
impl RefUnwindSafe for CouplingPair
impl Send for CouplingPair
impl Sync for CouplingPair
impl Unpin for CouplingPair
impl UnsafeUnpin for CouplingPair
impl UnwindSafe for CouplingPair
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> 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