pub struct SplitComparisonResult {
pub name: String,
pub description: String,
pub group1_metrics: GroupComparisonMetrics,
pub group2_metrics: GroupComparisonMetrics,
pub difference: GroupDifference,
pub baseline_comparison_metrics: Vec<FieldComparisonMetrics>,
pub split_comparison_metrics: Vec<FieldComparisonMetrics>,
}
Expand description
The result of comparing 2 arbitrary groups of fields based on the schema.
Fields§
§name: String
The name of the group comparison. (Copied from schema)
description: String
A description of the group comparison. (Copied from schema)
group1_metrics: GroupComparisonMetrics
The metrics for the first group.
group2_metrics: GroupComparisonMetrics
The metrics for the second group.
difference: GroupDifference
Comparison between group 2 and group 1.
baseline_comparison_metrics: Vec<FieldComparisonMetrics>
The statistics for the individual fields of the baseline group.
split_comparison_metrics: Vec<FieldComparisonMetrics>
The statistics for the individual fields of the split group.
Implementations§
Source§impl SplitComparisonResult
Helper functions around SplitComparisonResult
impl SplitComparisonResult
Helper functions around SplitComparisonResult
Sourcepub fn baseline_max_entropy_diff_ratio(&self) -> f64
pub fn baseline_max_entropy_diff_ratio(&self) -> f64
Ratio between the max and min entropy of the baseline fields.
Sourcepub fn baseline_max_entropy_diff(&self) -> f64
pub fn baseline_max_entropy_diff(&self) -> f64
Maximum difference between the entropy of the baseline fields.
Sourcepub fn split_max_entropy_diff(&self) -> f64
pub fn split_max_entropy_diff(&self) -> f64
Maximum difference between the entropy of the split fields.
Sourcepub fn split_max_entropy_diff_ratio(&self) -> f64
pub fn split_max_entropy_diff_ratio(&self) -> f64
Ratio between the max and min entropy of the split fields.
Trait Implementations§
Source§impl Clone for SplitComparisonResult
impl Clone for SplitComparisonResult
Source§fn clone(&self) -> SplitComparisonResult
fn clone(&self) -> SplitComparisonResult
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 Default for SplitComparisonResult
impl Default for SplitComparisonResult
Source§fn default() -> SplitComparisonResult
fn default() -> SplitComparisonResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SplitComparisonResult
impl RefUnwindSafe for SplitComparisonResult
impl Send for SplitComparisonResult
impl Sync for SplitComparisonResult
impl Unpin for SplitComparisonResult
impl UnwindSafe for SplitComparisonResult
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> 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