Trait r_gen::distributions::Sampleable[][src]

pub trait Sampleable {
    fn sample(&self) -> Value;
fn liklihood(&self, value: &Value) -> Result<f64, &str>; }
Expand description

A trait that you can implement to create your own distributions to sample from in a generative model.

Required methods

Sample a value from the distribution.

Compute the liklihood of a given value being sampled from the distribution.

Implementors