Struct opensrdk_probability::convert::ConvertedDistribution[][src]

pub struct ConvertedDistribution<D, T1, T2, U> where
    D: Distribution<T = T1, U = U>,
    T1: RandomVariable,
    T2: RandomVariable,
    U: RandomVariable
{ /* fields omitted */ }

Implementations

impl<D, T1, T2, U> ConvertedDistribution<D, T1, T2, U> where
    D: Distribution<T = T1, U = U>,
    T1: RandomVariable,
    T2: RandomVariable,
    U: RandomVariable
[src]

pub fn new(
    distribution: D,
    map: Box<dyn Fn(T1) -> T2>,
    inv: Box<dyn Fn(&T2) -> T1>
) -> Self
[src]

Trait Implementations

impl<D, T1, T2, U, Rhs, URhs> BitAnd<Rhs> for ConvertedDistribution<D, T1, T2, U> where
    D: Distribution<T = T1, U = U>,
    T1: RandomVariable,
    T2: RandomVariable,
    U: RandomVariable,
    Rhs: Distribution<T = U, U = URhs>,
    URhs: RandomVariable
[src]

type Output = DependentJoint<Self, Rhs, T2, U, URhs>

The resulting type after applying the & operator.

impl<D, T1, T2, U> Distribution for ConvertedDistribution<D, T1, T2, U> where
    D: Distribution<T = T1, U = U>,
    T1: RandomVariable,
    T2: RandomVariable,
    U: RandomVariable
[src]

type T = T2

type U = U

impl<D, T1, T2, U, Rhs, TRhs> Mul<Rhs> for ConvertedDistribution<D, T1, T2, U> where
    D: Distribution<T = T1, U = U>,
    T1: RandomVariable,
    T2: RandomVariable,
    U: RandomVariable,
    Rhs: Distribution<T = TRhs, U = U>,
    TRhs: RandomVariable
[src]

type Output = IndependentJoint<Self, Rhs, T2, TRhs, U>

The resulting type after applying the * operator.

Auto Trait Implementations

impl<D, T1, T2, U> !RefUnwindSafe for ConvertedDistribution<D, T1, T2, U>

impl<D, T1, T2, U> !Send for ConvertedDistribution<D, T1, T2, U>

impl<D, T1, T2, U> !Sync for ConvertedDistribution<D, T1, T2, U>

impl<D, T1, T2, U> Unpin for ConvertedDistribution<D, T1, T2, U> where
    D: Unpin

impl<D, T1, T2, U> !UnwindSafe for ConvertedDistribution<D, T1, T2, U>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<D, T1, U> ConvertableDistribution for D where
    U: RandomVariable,
    D: Distribution<T = T1, U = U>,
    T1: RandomVariable
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,