pub struct ScoreDistribution {
pub min: f32,
pub max: f32,
pub median: f32,
pub iqr: f32,
pub shape: ShapeLabel,
}Expand description
Response-level score distribution summary.
Emitted once per retrieve response alongside the items array. All
fields are scale-free or derived from scale-free quantities; the
shape label is the primary agent hint.
Fields§
§min: f32Minimum score across ranked items (0.0 when
ShapeLabel::InsufficientSamples).
max: f32Maximum score across ranked items.
median: f32Median (50th percentile) of the score vector.
iqr: f32Inter-quartile range (Q3 - Q1). Clamped to f32::EPSILON
before any downstream ratio so shape classification stays
defined for degenerate all-equal distributions.
shape: ShapeLabelCategorical shape label.
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 Default for ScoreDistribution
impl Default 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§fn eq(&self, other: &ScoreDistribution) -> bool
fn eq(&self, other: &ScoreDistribution) -> bool
Tests for
self and other values to be equal, and is used by ==.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