pub struct ValuedDistribution<D, T1, T2, U, F>where
D: Distribution<Value = T1, Condition = U>,
T1: RandomVariable,
T2: RandomVariable,
U: Event,
F: Fn(&T2) -> Result<T1, DistributionError> + Clone + Send + Sync,{ /* private fields */ }Implementations§
source§impl<D, T1, T2, U, F> ValuedDistribution<D, T1, T2, U, F>where
D: Distribution<Value = T1, Condition = U>,
T1: RandomVariable,
T2: RandomVariable,
U: Event,
F: Fn(&T2) -> Result<T1, DistributionError> + Clone + Send + Sync,
impl<D, T1, T2, U, F> ValuedDistribution<D, T1, T2, U, F>where
D: Distribution<Value = T1, Condition = U>,
T1: RandomVariable,
T2: RandomVariable,
U: Event,
F: Fn(&T2) -> Result<T1, DistributionError> + Clone + Send + Sync,
Trait Implementations§
source§impl<D, T1, T2, U, Rhs, URhs, F> BitAnd<Rhs> for ValuedDistribution<D, T1, T2, U, F>where
D: Distribution<Value = T1, Condition = U>,
T1: RandomVariable,
T2: RandomVariable,
U: Event,
Rhs: Distribution<Value = U, Condition = URhs>,
URhs: RandomVariable,
F: Fn(&T2) -> Result<T1, DistributionError> + Clone + Send + Sync,
impl<D, T1, T2, U, Rhs, URhs, F> BitAnd<Rhs> for ValuedDistribution<D, T1, T2, U, F>where
D: Distribution<Value = T1, Condition = U>,
T1: RandomVariable,
T2: RandomVariable,
U: Event,
Rhs: Distribution<Value = U, Condition = URhs>,
URhs: RandomVariable,
F: Fn(&T2) -> Result<T1, DistributionError> + Clone + Send + Sync,
§type Output = DependentJoint<ValuedDistribution<D, T1, T2, U, F>, Rhs, T2, U, URhs>
type Output = DependentJoint<ValuedDistribution<D, T1, T2, U, F>, Rhs, T2, U, URhs>
The resulting type after applying the
& operator.source§impl<D, T1, T2, U, F> Clone for ValuedDistribution<D, T1, T2, U, F>where
D: Distribution<Value = T1, Condition = U> + Clone,
T1: RandomVariable + Clone,
T2: RandomVariable + Clone,
U: Event + Clone,
F: Fn(&T2) -> Result<T1, DistributionError> + Clone + Send + Sync + Clone,
impl<D, T1, T2, U, F> Clone for ValuedDistribution<D, T1, T2, U, F>where
D: Distribution<Value = T1, Condition = U> + Clone,
T1: RandomVariable + Clone,
T2: RandomVariable + Clone,
U: Event + Clone,
F: Fn(&T2) -> Result<T1, DistributionError> + Clone + Send + Sync + Clone,
source§fn clone(&self) -> ValuedDistribution<D, T1, T2, U, F>
fn clone(&self) -> ValuedDistribution<D, T1, T2, U, F>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<D, T1, T2, U, F> ConditionDifferentiableDistribution for ValuedDistribution<D, T1, T2, U, F>where
D: Distribution<Value = T1, Condition = U> + ConditionDifferentiableDistribution,
T1: RandomVariable,
T2: RandomVariable,
U: Event,
F: Fn(&T2) -> Result<T1, DistributionError> + Clone + Send + Sync,
impl<D, T1, T2, U, F> ConditionDifferentiableDistribution for ValuedDistribution<D, T1, T2, U, F>where
D: Distribution<Value = T1, Condition = U> + ConditionDifferentiableDistribution,
T1: RandomVariable,
T2: RandomVariable,
U: Event,
F: Fn(&T2) -> Result<T1, DistributionError> + Clone + Send + Sync,
fn ln_diff_condition(
&self,
x: &Self::Value,
theta: &Self::Condition
) -> Result<Vec<f64>, DistributionError>
source§impl<D, T1, T2, U, F> Debug for ValuedDistribution<D, T1, T2, U, F>where
D: Distribution<Value = T1, Condition = U>,
T1: RandomVariable,
T2: RandomVariable,
U: Event,
F: Fn(&T2) -> Result<T1, DistributionError> + Clone + Send + Sync,
impl<D, T1, T2, U, F> Debug for ValuedDistribution<D, T1, T2, U, F>where
D: Distribution<Value = T1, Condition = U>,
T1: RandomVariable,
T2: RandomVariable,
U: Event,
F: Fn(&T2) -> Result<T1, DistributionError> + Clone + Send + Sync,
source§impl<D, T1, T2, U, F> Distribution for ValuedDistribution<D, T1, T2, U, F>where
D: Distribution<Value = T1, Condition = U>,
T1: RandomVariable,
T2: RandomVariable,
U: Event,
F: Fn(&T2) -> Result<T1, DistributionError> + Clone + Send + Sync,
impl<D, T1, T2, U, F> Distribution for ValuedDistribution<D, T1, T2, U, F>where
D: Distribution<Value = T1, Condition = U>,
T1: RandomVariable,
T2: RandomVariable,
U: Event,
F: Fn(&T2) -> Result<T1, DistributionError> + Clone + Send + Sync,
source§impl<D, T1, T2, U, Rhs, TRhs, F> Mul<Rhs> for ValuedDistribution<D, T1, T2, U, F>where
D: Distribution<Value = T1, Condition = U>,
T1: RandomVariable,
T2: RandomVariable,
U: Event,
Rhs: Distribution<Value = TRhs, Condition = U>,
TRhs: RandomVariable,
F: Fn(&T2) -> Result<T1, DistributionError> + Clone + Send + Sync,
impl<D, T1, T2, U, Rhs, TRhs, F> Mul<Rhs> for ValuedDistribution<D, T1, T2, U, F>where
D: Distribution<Value = T1, Condition = U>,
T1: RandomVariable,
T2: RandomVariable,
U: Event,
Rhs: Distribution<Value = TRhs, Condition = U>,
TRhs: RandomVariable,
F: Fn(&T2) -> Result<T1, DistributionError> + Clone + Send + Sync,
§type Output = IndependentJoint<ValuedDistribution<D, T1, T2, U, F>, Rhs, T2, TRhs, U>
type Output = IndependentJoint<ValuedDistribution<D, T1, T2, U, F>, Rhs, T2, TRhs, U>
The resulting type after applying the
* operator.