pub trait ValuableDistribution: Distribution + Sized {
    // Required method
    fn value<T2, F>(
self,
value: F
) -> ValuedDistribution<Self, Self::Value, T2, Self::Condition, F>
where T2: RandomVariable,
F: Fn(&T2) -> Result<Self::Value, DistributionError> + Clone + Send + Sync
; }

Required Methods§

source

fn value<T2, F>(
self,
value: F
) -> ValuedDistribution<Self, Self::Value, T2, Self::Condition, F>where
T2: RandomVariable,
F: Fn(&T2) -> Result<Self::Value, DistributionError> + Clone + Send + Sync,

.

Examples
// Example template not implemented for trait functions

Implementors§

source§

impl<D, T1, U> ValuableDistribution for Dwhere
D: Distribution<Value = T1, Condition = U>,
T1: RandomVariable,
U: Event,