pub struct ScoreDistribution {
pub samples: u64,
pub min_score: f64,
pub max_score: f64,
pub mean_score: f64,
pub variance: f64,
pub min_distance: f64,
pub max_distance: f64,
pub closest_approach: f64,
}Expand description
The score distribution of one gate over its scored evaluations: the
summary a flag carries so the reader can judge the smell without
re-walking the series. All f64 fields are computed over exactly
samples points — there is no empty distribution (a gate reaches here
only at or above MIN_SAMPLE_COUNT).
Fields§
§samples: u64Scored evaluations folded (always >= MIN_SAMPLE_COUNT).
min_score: f64§max_score: f64§mean_score: f64§variance: f64Population variance (÷n) of the scores — the near-constant input.
min_distance: f64Endpoints of the signed distance-to-threshold distribution (score − threshold, per point — thresholds may vary per evaluation).
max_distance: f64§closest_approach: f64min |score − threshold| over the sample — how close ANY evaluation
ever came to its threshold; the never-approaches-threshold input.
Trait Implementations§
Source§impl Clone for ScoreDistribution
impl Clone for ScoreDistribution
Source§fn clone(&self) -> ScoreDistribution
fn clone(&self) -> ScoreDistribution
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 ScoreDistribution
impl Debug for ScoreDistribution
Source§impl<'de> Deserialize<'de> for ScoreDistribution
impl<'de> Deserialize<'de> for ScoreDistribution
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 ScoreDistribution
impl PartialEq for ScoreDistribution
Source§impl Serialize for ScoreDistribution
impl Serialize for ScoreDistribution
impl StructuralPartialEq for ScoreDistribution
Auto Trait Implementations§
impl Freeze for ScoreDistribution
impl RefUnwindSafe for ScoreDistribution
impl Send for ScoreDistribution
impl Sync for ScoreDistribution
impl Unpin for ScoreDistribution
impl UnsafeUnpin for ScoreDistribution
impl UnwindSafe for ScoreDistribution
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