Skip to main content

MetaDistribution

Trait MetaDistribution 

Source
pub trait MetaDistribution {
    type CopulaType: Copula;

    // Required methods
    fn copula(&self) -> &Self::CopulaType;
    fn copula_mut(&mut self) -> &mut Self::CopulaType;
}
Expand description

Trait for meta-distributions that can use any copula.

This allows for constructions like meta-elliptical distributions where the dependence structure is specified by a copula.

Required Associated Types§

Source

type CopulaType: Copula

Type of the underlying copula

Required Methods§

Source

fn copula(&self) -> &Self::CopulaType

Get reference to the underlying copula

Source

fn copula_mut(&mut self) -> &mut Self::CopulaType

Get mutable reference to the underlying copula

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§