pub struct Bimodality {
pub is_bimodal: bool,
pub num_modes: u8,
pub dip_score: f64,
pub split_point: Option<u32>,
}Expand description
Bimodality verdict over a class’s per-method CC values.
Fields§
§is_bimodal: bool§num_modes: u81 or 2.
dip_score: f64Normalized gap ratio in [0, 1]; higher = more bimodal. Named for
continuity with the Python dip_score field — not the true Hartigan
dip statistic.
split_point: Option<u32>Complexity value at which the split occurs, when is_bimodal is true.
Trait Implementations§
Source§impl Clone for Bimodality
impl Clone for Bimodality
Source§fn clone(&self) -> Bimodality
fn clone(&self) -> Bimodality
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Bimodality
impl Debug for Bimodality
Source§impl Default for Bimodality
impl Default for Bimodality
Source§fn default() -> Bimodality
fn default() -> Bimodality
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Bimodality
impl<'de> Deserialize<'de> for Bimodality
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Bimodality
impl RefUnwindSafe for Bimodality
impl Send for Bimodality
impl Sync for Bimodality
impl Unpin for Bimodality
impl UnsafeUnpin for Bimodality
impl UnwindSafe for Bimodality
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