Skip to main content

Copula

Trait Copula 

Source
pub trait Copula: Sync {
    // Required methods
    fn dim(&self) -> usize;
    fn sample(&self, rng: &mut StreamRng, u: &mut [f64]);
}
Expand description

A d-dimensional copula.

Required Methods§

Source

fn dim(&self) -> usize

Number of dimensions.

Source

fn sample(&self, rng: &mut StreamRng, u: &mut [f64])

Fills u (length dim) with one draw of uniforms in (0, 1).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§