pub struct Copula {
pub kind: CopulaKind,
}Fields§
§kind: CopulaKindImplementations§
Source§impl Copula
impl Copula
pub fn gaussian(rho: f64) -> Self
pub fn clayton(theta: f64) -> Self
pub fn gumbel(theta: f64) -> Self
pub fn frank(theta: f64) -> Self
pub fn independence() -> Self
Sourcepub fn evaluate_clayton(&self, u: f64, v: f64) -> f64
pub fn evaluate_clayton(&self, u: f64, v: f64) -> f64
Evaluate Clayton copula C(u,v) = max(u^(-theta)+v^(-theta)-1, 0)^(-1/theta).
Sourcepub fn evaluate_gumbel(&self, u: f64, v: f64) -> f64
pub fn evaluate_gumbel(&self, u: f64, v: f64) -> f64
Evaluate Gumbel copula C(u,v) = exp(-[(-ln u)^theta+(-ln v)^theta]^(1/theta)).
Sourcepub fn spearman_rho_clayton_approx(&self) -> Option<f64>
pub fn spearman_rho_clayton_approx(&self) -> Option<f64>
Spearman’s rho for Clayton copula: 3*theta/(theta+2) (approximation).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Copula
impl RefUnwindSafe for Copula
impl Send for Copula
impl Sync for Copula
impl Unpin for Copula
impl UnsafeUnpin for Copula
impl UnwindSafe for Copula
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more