pub struct PerSourceBaseline {
pub namespace: String,
pub source: String,
pub count: u64,
pub median: f64,
pub mean: f64,
pub buckets: [u64; 10],
}Expand description
One per-(namespace, source) row in the calibration report.
source is the memories.source role label (user, claude,
api, …) denormalised onto each shadow observation via the
v40-schema column. count is the number of observations that
contributed; median and the bucket distribution let an operator
spot a skewed sample.
Fields§
§namespace: String§source: String§count: u64§median: f64Median derived confidence across the window. Robust to outliers vs. the mean.
mean: f64Mean derived confidence — emitted alongside the median so a caller can spot a skew-vs-tail distinction at a glance.
buckets: [u64; 10]Bucketed distribution of derived values. 10 buckets covering
[0.0, 0.1) … [0.9, 1.0] so a downstream UI can plot a
histogram without re-reading the observation table.
Trait Implementations§
Source§impl Clone for PerSourceBaseline
impl Clone for PerSourceBaseline
Source§fn clone(&self) -> PerSourceBaseline
fn clone(&self) -> PerSourceBaseline
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 PerSourceBaseline
impl Debug for PerSourceBaseline
Source§impl PartialEq for PerSourceBaseline
impl PartialEq for PerSourceBaseline
Source§fn eq(&self, other: &PerSourceBaseline) -> bool
fn eq(&self, other: &PerSourceBaseline) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PerSourceBaseline
impl Serialize for PerSourceBaseline
impl StructuralPartialEq for PerSourceBaseline
Auto Trait Implementations§
impl Freeze for PerSourceBaseline
impl RefUnwindSafe for PerSourceBaseline
impl Send for PerSourceBaseline
impl Sync for PerSourceBaseline
impl Unpin for PerSourceBaseline
impl UnsafeUnpin for PerSourceBaseline
impl UnwindSafe for PerSourceBaseline
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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