pub struct SampledHeatmap {
pub points: Vec<HeatPoint>,
pub total_sessions_seen: usize,
pub sessions_sampled: usize,
}Expand description
A memory-bounded attention heatmap computed via reservoir sampling.
Fields§
§points: Vec<HeatPoint>Heatmap bucket values (same layout as attention_heatmap).
total_sessions_seen: usizeNumber of sessions offered to the reservoir.
sessions_sampled: usizeActual number of sessions sampled (≤ reservoir_size).
Trait Implementations§
Source§impl Clone for SampledHeatmap
impl Clone for SampledHeatmap
Source§fn clone(&self) -> SampledHeatmap
fn clone(&self) -> SampledHeatmap
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 moreAuto Trait Implementations§
impl Freeze for SampledHeatmap
impl RefUnwindSafe for SampledHeatmap
impl Send for SampledHeatmap
impl Sync for SampledHeatmap
impl Unpin for SampledHeatmap
impl UnsafeUnpin for SampledHeatmap
impl UnwindSafe for SampledHeatmap
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