Struct opensrdk_probability::distribution::discrete_samples::DiscreteSamplesDistribution
source · [−]pub struct DiscreteSamplesDistribution<T> where
T: RandomVariable + Eq + Hash, { /* private fields */ }Implementations
sourceimpl<T> DiscreteSamplesDistribution<T> where
T: RandomVariable + Eq + Hash,
impl<T> DiscreteSamplesDistribution<T> where
T: RandomVariable + Eq + Hash,
sourceimpl<T> DiscreteSamplesDistribution<T> where
T: RandomVariable + Eq + Hash,
impl<T> DiscreteSamplesDistribution<T> where
T: RandomVariable + Eq + Hash,
pub fn mean(&self) -> Result<T, DistributionError>
Trait Implementations
sourceimpl<T, Rhs, URhs> BitAnd<Rhs> for DiscreteSamplesDistribution<T> where
T: RandomVariable + Eq + Hash,
Rhs: Distribution<Value = (), Condition = URhs>,
URhs: RandomVariable,
impl<T, Rhs, URhs> BitAnd<Rhs> for DiscreteSamplesDistribution<T> where
T: RandomVariable + Eq + Hash,
Rhs: Distribution<Value = (), Condition = URhs>,
URhs: RandomVariable,
type Output = DependentJoint<DiscreteSamplesDistribution<T>, Rhs, T, (), URhs>
type Output = DependentJoint<DiscreteSamplesDistribution<T>, Rhs, T, (), URhs>
The resulting type after applying the & operator.
sourceimpl<T: Clone> Clone for DiscreteSamplesDistribution<T> where
T: RandomVariable + Eq + Hash,
impl<T: Clone> Clone for DiscreteSamplesDistribution<T> where
T: RandomVariable + Eq + Hash,
sourcefn clone(&self) -> DiscreteSamplesDistribution<T>
fn clone(&self) -> DiscreteSamplesDistribution<T>
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 more
sourceimpl<T: Debug> Debug for DiscreteSamplesDistribution<T> where
T: RandomVariable + Eq + Hash,
impl<T: Debug> Debug for DiscreteSamplesDistribution<T> where
T: RandomVariable + Eq + Hash,
sourceimpl<T> Distribution for DiscreteSamplesDistribution<T> where
T: RandomVariable + Eq + Hash,
impl<T> Distribution for DiscreteSamplesDistribution<T> where
T: RandomVariable + Eq + Hash,
sourceimpl<T, Rhs, TRhs> Mul<Rhs> for DiscreteSamplesDistribution<T> where
T: RandomVariable + Eq + Hash,
Rhs: Distribution<Value = TRhs, Condition = ()>,
TRhs: RandomVariable,
impl<T, Rhs, TRhs> Mul<Rhs> for DiscreteSamplesDistribution<T> where
T: RandomVariable + Eq + Hash,
Rhs: Distribution<Value = TRhs, Condition = ()>,
TRhs: RandomVariable,
type Output = IndependentJoint<DiscreteSamplesDistribution<T>, Rhs, T, TRhs, ()>
type Output = IndependentJoint<DiscreteSamplesDistribution<T>, Rhs, T, TRhs, ()>
The resulting type after applying the * operator.
Auto Trait Implementations
impl<T> RefUnwindSafe for DiscreteSamplesDistribution<T> where
T: RefUnwindSafe,
impl<T> Send for DiscreteSamplesDistribution<T>
impl<T> Sync for DiscreteSamplesDistribution<T>
impl<T> Unpin for DiscreteSamplesDistribution<T> where
T: Unpin,
impl<T> UnwindSafe for DiscreteSamplesDistribution<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<D, T, U1> ConditionableDistribution for D where
D: Distribution<Value = T, Condition = U1>,
T: RandomVariable,
U1: Event,
impl<D, T, U1> ConditionableDistribution for D where
D: Distribution<Value = T, Condition = U1>,
T: RandomVariable,
U1: Event,
sourcefn condition<U2, F>(
self,
condition: F
) -> ConditionedDistribution<D, <D as Distribution>::Value, <D as Distribution>::Condition, U2, F> where
U2: Event,
F: Fn(&U2) -> Result<<D as Distribution>::Condition, DistributionError> + Clone + Send + Sync,
fn condition<U2, F>(
self,
condition: F
) -> ConditionedDistribution<D, <D as Distribution>::Value, <D as Distribution>::Condition, U2, F> where
U2: Event,
F: Fn(&U2) -> Result<<D as Distribution>::Condition, DistributionError> + Clone + Send + Sync,
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<D, T, U> SwitchableDistribution<U> for D where
D: Distribution<Value = T, Condition = U>,
T: RandomVariable,
U: Event,
impl<D, T, U> SwitchableDistribution<U> for D where
D: Distribution<Value = T, Condition = U>,
T: RandomVariable,
U: Event,
fn switch(
&'a self,
map: &'a HashMap<u32, U, RandomState>
) -> SwitchedDistribution<'a, D, <D as Distribution>::Value, U>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more