Trait opensrdk_probability::convert::ConvertableDistribution[][src]

pub trait ConvertableDistribution: Distribution + Sized {
    fn convert<T2>(
        self,
        map: Box<dyn Fn(Self::T) -> T2>,
        inv: Box<dyn Fn(&T2) -> Self::T>
    ) -> ConvertedDistribution<Self, Self::T, T2, Self::U>
    where
        T2: RandomVariable
; }

Required methods

fn convert<T2>(
    self,
    map: Box<dyn Fn(Self::T) -> T2>,
    inv: Box<dyn Fn(&T2) -> Self::T>
) -> ConvertedDistribution<Self, Self::T, T2, Self::U> where
    T2: RandomVariable
[src]

Loading content...

Implementors

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

Loading content...