pub struct PosteriorDrawProvider { /* private fields */ }Expand description
Draw-indexed posterior provider: one EmpiricalTableProvider per draw.
Implementations§
Trait Implementations§
Source§impl Clone for PosteriorDrawProvider
impl Clone for PosteriorDrawProvider
Source§fn clone(&self) -> PosteriorDrawProvider
fn clone(&self) -> PosteriorDrawProvider
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 PosteriorDrawProvider
impl Debug for PosteriorDrawProvider
Source§impl Default for PosteriorDrawProvider
impl Default for PosteriorDrawProvider
Source§fn default() -> PosteriorDrawProvider
fn default() -> PosteriorDrawProvider
Returns the “default value” for a type. Read more
Source§impl DistributionProvider for PosteriorDrawProvider
impl DistributionProvider for PosteriorDrawProvider
Source§fn probability(
&self,
spec: &FactorSpec<'_>,
assignment: &Assignment,
ctx: &EvalContext,
) -> Result<f64, EvalError>
fn probability( &self, spec: &FactorSpec<'_>, assignment: &Assignment, ctx: &EvalContext, ) -> Result<f64, EvalError>
Probability / density mass for a factor under an assignment. Read more
Source§fn support(
&self,
vars: &[VariableId],
ctx: &EvalContext,
) -> Result<Arc<[Arc<[Value]>]>, EvalError>
fn support( &self, vars: &[VariableId], ctx: &EvalContext, ) -> Result<Arc<[Arc<[Value]>]>, EvalError>
Discrete support for variables (cartesian rows of values aligned to
vars). Read moreSource§fn outcome(
&self,
var: VariableId,
assignment: &Assignment,
ctx: &EvalContext,
) -> Result<f64, EvalError>
fn outcome( &self, var: VariableId, assignment: &Assignment, ctx: &EvalContext, ) -> Result<f64, EvalError>
Outcome function value (identity: the bound value of
var). Read moreSource§fn n_draws(&self) -> Option<usize>
fn n_draws(&self) -> Option<usize>
Number of posterior draws, or
None for a single empirical world.Source§fn quadrature(
&self,
_vars: &[VariableId],
_ctx: &EvalContext,
) -> Result<Option<QuadratureNodes>, EvalError>
fn quadrature( &self, _vars: &[VariableId], _ctx: &EvalContext, ) -> Result<Option<QuadratureNodes>, EvalError>
Optional continuous quadrature nodes
(assignment_row, Lebesgue weight) for
crate::ExprNode::IntegralOut. Read moreAuto Trait Implementations§
impl Freeze for PosteriorDrawProvider
impl RefUnwindSafe for PosteriorDrawProvider
impl Send for PosteriorDrawProvider
impl Sync for PosteriorDrawProvider
impl Unpin for PosteriorDrawProvider
impl UnsafeUnpin for PosteriorDrawProvider
impl UnwindSafe for PosteriorDrawProvider
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