pub struct ReservoirHeatmapConfig {
pub reservoir_size: usize,
pub bucket_ms: u32,
pub seed: u64,
}Expand description
Configuration for reservoir-sampled attention heatmap generation.
When there are too many sessions to keep in memory, a uniform random sample
of size reservoir_size is maintained via Algorithm R (Vitter 1985).
Fields§
§reservoir_size: usizeMaximum number of sessions held in the reservoir at any time.
bucket_ms: u32Width of each heatmap bucket in milliseconds.
seed: u6464-bit seed for the pseudorandom number generator.
Trait Implementations§
Source§impl Clone for ReservoirHeatmapConfig
impl Clone for ReservoirHeatmapConfig
Source§fn clone(&self) -> ReservoirHeatmapConfig
fn clone(&self) -> ReservoirHeatmapConfig
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 ReservoirHeatmapConfig
impl Debug for ReservoirHeatmapConfig
Auto Trait Implementations§
impl Freeze for ReservoirHeatmapConfig
impl RefUnwindSafe for ReservoirHeatmapConfig
impl Send for ReservoirHeatmapConfig
impl Sync for ReservoirHeatmapConfig
impl Unpin for ReservoirHeatmapConfig
impl UnsafeUnpin for ReservoirHeatmapConfig
impl UnwindSafe for ReservoirHeatmapConfig
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