[][src]Struct markovian::distributions::Binary

pub struct Binary<S1, S2, T, F, D1, D2> where
    F: Fn(S1, S2) -> T,
    D1: Distribution<S1>,
    D2: Distribution<S2>, 
{ /* fields omitted */ }

Concrete struct for the function of two Distributions`.

Examples

A Beta(2, 1) as the sum of two exponentials(1).

let beta = Binary::new(|x: f64, y: f64| x + y,  Exp1, Exp1);

Implementations

impl<S1, S2, T, F, D1, D2> Binary<S1, S2, T, F, D1, D2> where
    F: Fn(S1, S2) -> T,
    D1: Distribution<S1>,
    D2: Distribution<S2>, 
[src]

pub fn new(func: F, distr_1: D1, distr_2: D2) -> Self[src]

Trait Implementations

impl<S1: Clone, S2: Clone, T: Clone, F: Clone, D1: Clone, D2: Clone> Clone for Binary<S1, S2, T, F, D1, D2> where
    F: Fn(S1, S2) -> T,
    D1: Distribution<S1>,
    D2: Distribution<S2>, 
[src]

impl<S1: Copy, S2: Copy, T: Copy, F: Copy, D1: Copy, D2: Copy> Copy for Binary<S1, S2, T, F, D1, D2> where
    F: Fn(S1, S2) -> T,
    D1: Distribution<S1>,
    D2: Distribution<S2>, 
[src]

impl<S1: Debug, S2: Debug, T: Debug, F: Debug, D1: Debug, D2: Debug> Debug for Binary<S1, S2, T, F, D1, D2> where
    F: Fn(S1, S2) -> T,
    D1: Distribution<S1>,
    D2: Distribution<S2>, 
[src]

impl<S1, S2, T, F, D1, D2> Distribution<T> for Binary<S1, S2, T, F, D1, D2> where
    F: Fn(S1, S2) -> T,
    D1: Distribution<S1>,
    D2: Distribution<S2>, 
[src]

Auto Trait Implementations

impl<S1, S2, T, F, D1, D2> RefUnwindSafe for Binary<S1, S2, T, F, D1, D2> where
    D1: RefUnwindSafe,
    D2: RefUnwindSafe,
    F: RefUnwindSafe,
    S1: RefUnwindSafe,
    S2: RefUnwindSafe,
    T: RefUnwindSafe

impl<S1, S2, T, F, D1, D2> Send for Binary<S1, S2, T, F, D1, D2> where
    D1: Send,
    D2: Send,
    F: Send,
    S1: Send,
    S2: Send,
    T: Send

impl<S1, S2, T, F, D1, D2> Sync for Binary<S1, S2, T, F, D1, D2> where
    D1: Sync,
    D2: Sync,
    F: Sync,
    S1: Sync,
    S2: Sync,
    T: Sync

impl<S1, S2, T, F, D1, D2> Unpin for Binary<S1, S2, T, F, D1, D2> where
    D1: Unpin,
    D2: Unpin,
    F: Unpin,
    S1: Unpin,
    S2: Unpin,
    T: Unpin

impl<S1, S2, T, F, D1, D2> UnwindSafe for Binary<S1, S2, T, F, D1, D2> where
    D1: UnwindSafe,
    D2: UnwindSafe,
    F: UnwindSafe,
    S1: UnwindSafe,
    S2: UnwindSafe,
    T: UnwindSafe

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<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,