pub struct TableAssociationModel<'model, 'data> { /* private fields */ }Expand description
Zero-allocation borrowed model with complete declared table coverage. This concrete implementation accepts only finite log likelihoods/densities; exact impossible events require a different explicitly qualified model.
Implementations§
Source§impl<'model, 'data> TableAssociationModel<'model, 'data>
impl<'model, 'data> TableAssociationModel<'model, 'data>
pub fn new( reference: AssociationModelReference, request: AssociationRequest, dependence: DependenceAssumption, evidence: &'model [AssociationEvidence<'data>], priors: &'model [AssociationPriorRow], likelihoods: &'model [AssociationLikelihoodRow], ) -> Result<Self, AssociationTableError>
pub const fn request(&self) -> AssociationRequest
pub const fn dependence(&self) -> DependenceAssumption
pub const fn evidence(&self) -> &'model [AssociationEvidence<'data>]
pub const fn priors(&self) -> &'model [AssociationPriorRow]
pub const fn likelihoods(&self) -> &'model [AssociationLikelihoodRow]
Trait Implementations§
Source§impl CalibratedAssociationModel for TableAssociationModel<'_, '_>
impl CalibratedAssociationModel for TableAssociationModel<'_, '_>
fn reference(&self) -> AssociationModelReference
fn prior_probability( &self, request: &AssociationRequest, hypothesis: &AssociationHypothesis, ) -> Option<f64>
fn joint_log_likelihoods( &self, request: &AssociationRequest, hypothesis: &AssociationHypothesis, group: AssociationEvidenceGroup<'_, '_>, ) -> Option<BinaryLogLikelihoods>
Auto Trait Implementations§
impl<'model, 'data> Freeze for TableAssociationModel<'model, 'data>
impl<'model, 'data> RefUnwindSafe for TableAssociationModel<'model, 'data>
impl<'model, 'data> Send for TableAssociationModel<'model, 'data>
impl<'model, 'data> Sync for TableAssociationModel<'model, 'data>
impl<'model, 'data> Unpin for TableAssociationModel<'model, 'data>
impl<'model, 'data> UnsafeUnpin for TableAssociationModel<'model, 'data>
impl<'model, 'data> UnwindSafe for TableAssociationModel<'model, 'data>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§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