pub struct SwitchedDistribution<'a, D, T, U>where
D: Distribution<Value = T, Condition = U>,
T: RandomVariable,
U: Clone + Debug + Send + Sync,{ /* private fields */ }Implementations
sourceimpl<'a, D, T, U> SwitchedDistribution<'a, D, T, U>where
D: Distribution<Value = T, Condition = U>,
T: RandomVariable,
U: Event,
impl<'a, D, T, U> SwitchedDistribution<'a, D, T, U>where
D: Distribution<Value = T, Condition = U>,
T: RandomVariable,
U: Event,
Trait Implementations
sourceimpl<'a, D, T, U, Rhs, URhs> BitAnd<Rhs> for SwitchedDistribution<'a, D, T, U>where
D: Distribution<Value = T, Condition = U>,
T: RandomVariable,
U: Event,
Rhs: Distribution<Value = SwitchedParams<U>, Condition = URhs>,
URhs: Event,
impl<'a, D, T, U, Rhs, URhs> BitAnd<Rhs> for SwitchedDistribution<'a, D, T, U>where
D: Distribution<Value = T, Condition = U>,
T: RandomVariable,
U: Event,
Rhs: Distribution<Value = SwitchedParams<U>, Condition = URhs>,
URhs: Event,
type Output = DependentJoint<SwitchedDistribution<'a, D, T, U>, Rhs, T, SwitchedParams<U>, URhs>
type Output = DependentJoint<SwitchedDistribution<'a, D, T, U>, Rhs, T, SwitchedParams<U>, URhs>
The resulting type after applying the
& operator.sourceimpl<'a, D: Clone, T: Clone, U: Clone> Clone for SwitchedDistribution<'a, D, T, U>where
D: Distribution<Value = T, Condition = U>,
T: RandomVariable,
U: Clone + Debug + Send + Sync,
impl<'a, D: Clone, T: Clone, U: Clone> Clone for SwitchedDistribution<'a, D, T, U>where
D: Distribution<Value = T, Condition = U>,
T: RandomVariable,
U: Clone + Debug + Send + Sync,
sourcefn clone(&self) -> SwitchedDistribution<'a, D, T, U>
fn clone(&self) -> SwitchedDistribution<'a, D, T, U>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<'a, D: Debug, T: Debug, U: Debug> Debug for SwitchedDistribution<'a, D, T, U>where
D: Distribution<Value = T, Condition = U>,
T: RandomVariable,
U: Clone + Debug + Send + Sync,
impl<'a, D: Debug, T: Debug, U: Debug> Debug for SwitchedDistribution<'a, D, T, U>where
D: Distribution<Value = T, Condition = U>,
T: RandomVariable,
U: Clone + Debug + Send + Sync,
sourceimpl<'a, D, T, U> Distribution for SwitchedDistribution<'a, D, T, U>where
D: Distribution<Value = T, Condition = U>,
T: RandomVariable,
U: Event,
impl<'a, D, T, U> Distribution for SwitchedDistribution<'a, D, T, U>where
D: Distribution<Value = T, Condition = U>,
T: RandomVariable,
U: Event,
type Value = T
type Condition = SwitchedParams<U>
fn p_kernel(
&self,
x: &Self::Value,
theta: &Self::Condition
) -> Result<f64, DistributionError>
sourceimpl<'a, D, T, U, Rhs, TRhs> Mul<Rhs> for SwitchedDistribution<'a, D, T, U>where
D: Distribution<Value = T, Condition = U>,
T: RandomVariable,
U: Event,
Rhs: Distribution<Value = TRhs, Condition = SwitchedParams<U>>,
TRhs: RandomVariable,
impl<'a, D, T, U, Rhs, TRhs> Mul<Rhs> for SwitchedDistribution<'a, D, T, U>where
D: Distribution<Value = T, Condition = U>,
T: RandomVariable,
U: Event,
Rhs: Distribution<Value = TRhs, Condition = SwitchedParams<U>>,
TRhs: RandomVariable,
type Output = IndependentJoint<SwitchedDistribution<'a, D, T, U>, Rhs, T, TRhs, SwitchedParams<U>>
type Output = IndependentJoint<SwitchedDistribution<'a, D, T, U>, Rhs, T, TRhs, SwitchedParams<U>>
The resulting type after applying the
* operator.sourceimpl<'a, D, T, U> SampleableDistribution for SwitchedDistribution<'a, D, T, U>where
D: SampleableDistribution<Value = T, Condition = U>,
T: RandomVariable,
U: Event,
impl<'a, D, T, U> SampleableDistribution for SwitchedDistribution<'a, D, T, U>where
D: SampleableDistribution<Value = T, Condition = U>,
T: RandomVariable,
U: Event,
Auto Trait Implementations
impl<'a, D, T, U> RefUnwindSafe for SwitchedDistribution<'a, D, T, U>where
D: RefUnwindSafe,
U: RefUnwindSafe,
impl<'a, D, T, U> Send for SwitchedDistribution<'a, D, T, U>
impl<'a, D, T, U> Sync for SwitchedDistribution<'a, D, T, U>
impl<'a, D, T, U> Unpin for SwitchedDistribution<'a, D, T, U>
impl<'a, D, T, U> UnwindSafe for SwitchedDistribution<'a, D, T, U>where
D: RefUnwindSafe,
U: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more