pub struct F2Sketch { /* private fields */ }Expand description
Estimates the second frequency moment F2 = sum_k f_k^2 of a stream of hashed keys, where f_k is the number of times key k was inserted.
This is a single row of a Count-Sketch (the “fast AMS” sketch): every hash adds +1 or -1 to one of 64 buckets, and the sum of squared buckets is an unbiased estimate of F2 with a relative standard error of ~18%.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for F2Sketch
impl RefUnwindSafe for F2Sketch
impl Send for F2Sketch
impl Sync for F2Sketch
impl Unpin for F2Sketch
impl UnsafeUnpin for F2Sketch
impl UnwindSafe for F2Sketch
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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