pub struct Finaliser<'a> {
pub threshold: u64,
pub estimator: Estimator,
pub min_coverage: Option<f64>,
pub fields: &'a [String],
pub values: &'a [(usize, String)],
}Expand description
Everything needed to finalise positions, shared by all of them.
Fields§
§threshold: u64Support threshold T.
estimator: EstimatorEntropy estimator.
min_coverage: Option<f64>--min-coverage, if given.
fields: &'a [String]Stratified field names, in header order (empty without metadata).
values: &'a [(usize, String)]For each header value id: (stratified field index, value).
Implementations§
Source§impl Finaliser<'_>
impl Finaliser<'_>
Sourcepub fn finalise(
&self,
position: u64,
counts: &PositionCounts,
) -> Result<PositionResult>
pub fn finalise( &self, position: u64, counts: &PositionCounts, ) -> Result<PositionResult>
The result of position position (1-based).
§Errors
Internal errors from the estimators (non-finite values).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Finaliser<'a>
impl<'a> RefUnwindSafe for Finaliser<'a>
impl<'a> Send for Finaliser<'a>
impl<'a> Sync for Finaliser<'a>
impl<'a> Unpin for Finaliser<'a>
impl<'a> UnsafeUnpin for Finaliser<'a>
impl<'a> UnwindSafe for Finaliser<'a>
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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