pub struct ConditionedDistribution<D, T, U1, U2, F>where
D: Distribution<Value = T, Condition = U1>,
T: RandomVariable,
U1: Event,
U2: Event,
F: Fn(&U2) -> Result<U1, DistributionError> + Clone + Send + Sync,{ /* private fields */ }Implementations§
source§impl<D, T, U1, U2, F> ConditionedDistribution<D, T, U1, U2, F>where
D: Distribution<Value = T, Condition = U1>,
T: RandomVariable,
U1: Event,
U2: Event,
F: Fn(&U2) -> Result<U1, DistributionError> + Clone + Send + Sync,
impl<D, T, U1, U2, F> ConditionedDistribution<D, T, U1, U2, F>where
D: Distribution<Value = T, Condition = U1>,
T: RandomVariable,
U1: Event,
U2: Event,
F: Fn(&U2) -> Result<U1, DistributionError> + Clone + Send + Sync,
Trait Implementations§
source§impl<D, T, U1, U2, Rhs, URhs, F> BitAnd<Rhs> for ConditionedDistribution<D, T, U1, U2, F>where
D: Distribution<Value = T, Condition = U1>,
T: RandomVariable,
U1: Event,
U2: Event,
Rhs: Distribution<Value = U2, Condition = URhs>,
URhs: RandomVariable,
F: Fn(&U2) -> Result<U1, DistributionError> + Clone + Send + Sync,
impl<D, T, U1, U2, Rhs, URhs, F> BitAnd<Rhs> for ConditionedDistribution<D, T, U1, U2, F>where
D: Distribution<Value = T, Condition = U1>,
T: RandomVariable,
U1: Event,
U2: Event,
Rhs: Distribution<Value = U2, Condition = URhs>,
URhs: RandomVariable,
F: Fn(&U2) -> Result<U1, DistributionError> + Clone + Send + Sync,
§type Output = DependentJoint<ConditionedDistribution<D, T, U1, U2, F>, Rhs, T, U2, URhs>
type Output = DependentJoint<ConditionedDistribution<D, T, U1, U2, F>, Rhs, T, U2, URhs>
The resulting type after applying the
& operator.source§impl<D, T, U1, U2, F> Clone for ConditionedDistribution<D, T, U1, U2, F>where
D: Distribution<Value = T, Condition = U1> + Clone,
T: RandomVariable + Clone,
U1: Event + Clone,
U2: Event + Clone,
F: Fn(&U2) -> Result<U1, DistributionError> + Clone + Send + Sync + Clone,
impl<D, T, U1, U2, F> Clone for ConditionedDistribution<D, T, U1, U2, F>where
D: Distribution<Value = T, Condition = U1> + Clone,
T: RandomVariable + Clone,
U1: Event + Clone,
U2: Event + Clone,
F: Fn(&U2) -> Result<U1, DistributionError> + Clone + Send + Sync + Clone,
source§fn clone(&self) -> ConditionedDistribution<D, T, U1, U2, F>
fn clone(&self) -> ConditionedDistribution<D, T, U1, U2, 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, T, U1, U2, F> Debug for ConditionedDistribution<D, T, U1, U2, F>where
D: Distribution<Value = T, Condition = U1>,
T: RandomVariable,
U1: Event,
U2: Event,
F: Fn(&U2) -> Result<U1, DistributionError> + Clone + Send + Sync,
impl<D, T, U1, U2, F> Debug for ConditionedDistribution<D, T, U1, U2, F>where
D: Distribution<Value = T, Condition = U1>,
T: RandomVariable,
U1: Event,
U2: Event,
F: Fn(&U2) -> Result<U1, DistributionError> + Clone + Send + Sync,
source§impl<D, T, U1, U2, F> Distribution for ConditionedDistribution<D, T, U1, U2, F>where
D: Distribution<Value = T, Condition = U1>,
T: RandomVariable,
U1: Event,
U2: Event,
F: Fn(&U2) -> Result<U1, DistributionError> + Clone + Send + Sync,
impl<D, T, U1, U2, F> Distribution for ConditionedDistribution<D, T, U1, U2, F>where
D: Distribution<Value = T, Condition = U1>,
T: RandomVariable,
U1: Event,
U2: Event,
F: Fn(&U2) -> Result<U1, DistributionError> + Clone + Send + Sync,
source§impl<D, T, U1, U2, Rhs, TRhs, F> Mul<Rhs> for ConditionedDistribution<D, T, U1, U2, F>where
D: Distribution<Value = T, Condition = U1>,
T: RandomVariable,
U1: Event,
U2: Event,
Rhs: Distribution<Value = TRhs, Condition = U2>,
TRhs: RandomVariable,
F: Fn(&U2) -> Result<U1, DistributionError> + Clone + Send + Sync,
impl<D, T, U1, U2, Rhs, TRhs, F> Mul<Rhs> for ConditionedDistribution<D, T, U1, U2, F>where
D: Distribution<Value = T, Condition = U1>,
T: RandomVariable,
U1: Event,
U2: Event,
Rhs: Distribution<Value = TRhs, Condition = U2>,
TRhs: RandomVariable,
F: Fn(&U2) -> Result<U1, DistributionError> + Clone + Send + Sync,
§type Output = IndependentJoint<ConditionedDistribution<D, T, U1, U2, F>, Rhs, T, TRhs, U2>
type Output = IndependentJoint<ConditionedDistribution<D, T, U1, U2, F>, Rhs, T, TRhs, U2>
The resulting type after applying the
* operator.