Trait rv::traits::Rv

source ·
pub trait Rv<X>: Sampleable<X> + HasDensity<X> { }
Expand description

Random variable

Contains the minimal functionality that a random object must have to be useful: a function defining the un-normalized density/mass at a point, and functions to draw samples from the distribution.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<X, T> Rv<X> for T
where T: Sampleable<X> + HasDensity<X>,