pub struct DimensionStats {
pub strength_counts: StrengthCounts,
pub distance_counts: DistanceCounts,
pub volatility_counts: VolatilityCounts,
pub balance_counts: BalanceCounts,
}Expand description
Statistics for 3-dimensional coupling analysis
Fields§
§strength_counts: StrengthCountsStrength distribution
distance_counts: DistanceCountsDistance distribution
volatility_counts: VolatilityCountsVolatility distribution
balance_counts: BalanceCountsBalance classification counts
Implementations§
Source§impl DimensionStats
impl DimensionStats
Sourcepub fn strength_percentages(&self) -> (f64, f64, f64, f64)
pub fn strength_percentages(&self) -> (f64, f64, f64, f64)
Get percentage of each strength level
Sourcepub fn distance_percentages(&self) -> (f64, f64, f64)
pub fn distance_percentages(&self) -> (f64, f64, f64)
Get percentage of each distance level
Sourcepub fn volatility_percentages(&self) -> (f64, f64, f64)
pub fn volatility_percentages(&self) -> (f64, f64, f64)
Get percentage of each volatility level
Sourcepub fn ideal_count(&self) -> usize
pub fn ideal_count(&self) -> usize
Count of ideal couplings (High Cohesion + Loose Coupling)
Sourcepub fn problematic_count(&self) -> usize
pub fn problematic_count(&self) -> usize
Count of problematic couplings (Pain + Local Complexity)
Sourcepub fn ideal_percentage(&self) -> f64
pub fn ideal_percentage(&self) -> f64
Percentage of ideal couplings
Trait Implementations§
Source§impl Clone for DimensionStats
impl Clone for DimensionStats
Source§fn clone(&self) -> DimensionStats
fn clone(&self) -> DimensionStats
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 moreSource§impl Debug for DimensionStats
impl Debug for DimensionStats
Source§impl Default for DimensionStats
impl Default for DimensionStats
Source§fn default() -> DimensionStats
fn default() -> DimensionStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DimensionStats
impl RefUnwindSafe for DimensionStats
impl Send for DimensionStats
impl Sync for DimensionStats
impl Unpin for DimensionStats
impl UnsafeUnpin for DimensionStats
impl UnwindSafe for DimensionStats
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