Enum lace::SummaryStatistics
source · pub enum SummaryStatistics {
Binary {
n: usize,
pos: usize,
},
Continuous {
min: f64,
max: f64,
mean: f64,
median: f64,
variance: f64,
},
Categorical {
min: u8,
max: u8,
mode: Vec<u8>,
},
Count {
min: u32,
max: u32,
median: f64,
mean: f64,
mode: Vec<u32>,
},
None,
}
Variants§
Trait Implementations§
source§impl Clone for SummaryStatistics
impl Clone for SummaryStatistics
source§fn clone(&self) -> SummaryStatistics
fn clone(&self) -> SummaryStatistics
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 SummaryStatistics
impl Debug for SummaryStatistics
source§impl<'de> Deserialize<'de> for SummaryStatistics
impl<'de> Deserialize<'de> for SummaryStatistics
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<SummaryStatistics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SummaryStatistics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for SummaryStatistics
impl PartialEq for SummaryStatistics
source§fn eq(&self, other: &SummaryStatistics) -> bool
fn eq(&self, other: &SummaryStatistics) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SummaryStatistics
impl Serialize for SummaryStatistics
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SummaryStatistics
Auto Trait Implementations§
impl RefUnwindSafe for SummaryStatistics
impl Send for SummaryStatistics
impl Sync for SummaryStatistics
impl Unpin for SummaryStatistics
impl UnwindSafe for SummaryStatistics
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.