Struct lace::MiComponents
source · pub struct MiComponents {
pub h_a: f64,
pub h_b: f64,
pub h_ab: f64,
}
Expand description
Holds the components required to compute mutual information
Fields§
§h_a: f64
The entropy of column a, H(A)
h_b: f64
The entropy of column b, H(B)
h_ab: f64
The joint entropy of columns a and b, H(A, B)
Implementations§
Trait Implementations§
source§impl Clone for MiComponents
impl Clone for MiComponents
source§fn clone(&self) -> MiComponents
fn clone(&self) -> MiComponents
Returns a copy 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 MiComponents
impl Debug for MiComponents
source§impl<'de> Deserialize<'de> for MiComponents
impl<'de> Deserialize<'de> for MiComponents
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
source§impl PartialEq for MiComponents
impl PartialEq for MiComponents
source§fn eq(&self, other: &MiComponents) -> bool
fn eq(&self, other: &MiComponents) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MiComponents
impl PartialOrd for MiComponents
source§fn partial_cmp(&self, other: &MiComponents) -> Option<Ordering>
fn partial_cmp(&self, other: &MiComponents) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for MiComponents
impl Serialize for MiComponents
impl StructuralPartialEq for MiComponents
Auto Trait Implementations§
impl RefUnwindSafe for MiComponents
impl Send for MiComponents
impl Sync for MiComponents
impl Unpin for MiComponents
impl UnwindSafe for MiComponents
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
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.