pub struct ApproxResult {
pub point: f64,
pub ci_low: f64,
pub ci_high: f64,
pub n_population: u64,
pub n_sample_live: usize,
pub n_passing: usize,
}Expand description
Point estimate with a normal-theory confidence interval from the reservoir
sample (Phase 8.2). ci_low/ci_high bracket point at the requested
z-score; the interval has zero width when the sample equals the whole table.
Fields§
§point: f64Point estimate of the aggregate.
ci_low: f64Lower bound (point − z·SE).
ci_high: f64Upper bound (point + z·SE).
n_population: u64Live population size (the table’s count()).
n_sample_live: usizeLive rows in the sample (≤ reservoir capacity).
n_passing: usizeSampled rows passing the WHERE predicate.
Trait Implementations§
Source§impl Clone for ApproxResult
impl Clone for ApproxResult
Source§fn clone(&self) -> ApproxResult
fn clone(&self) -> ApproxResult
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 ApproxResult
impl RefUnwindSafe for ApproxResult
impl Send for ApproxResult
impl Sync for ApproxResult
impl Unpin for ApproxResult
impl UnsafeUnpin for ApproxResult
impl UnwindSafe for ApproxResult
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