pub struct CopulaConfig {
pub copula_type: CopulaType,
pub theta: f64,
pub degrees_of_freedom: f64,
}Expand description
Configuration for copula-based correlation.
Fields§
§copula_type: CopulaTypeType of copula to use
theta: f64Correlation parameter (interpretation depends on copula type)
- Gaussian/Student-t: correlation coefficient (-1 to 1)
- Clayton: theta > 0 (higher = stronger lower tail dependence)
- Gumbel: theta >= 1 (higher = stronger upper tail dependence)
- Frank: theta != 0 (|theta| higher = stronger dependence)
degrees_of_freedom: f64Degrees of freedom for Student-t copula (only used if copula_type = StudentT)
Implementations§
Source§impl CopulaConfig
impl CopulaConfig
Sourcepub fn kendalls_tau(&self) -> f64
pub fn kendalls_tau(&self) -> f64
Get the implied Kendall’s tau for this copula configuration.
Sourcepub fn lower_tail_dependence(&self) -> f64
pub fn lower_tail_dependence(&self) -> f64
Get the lower tail dependence coefficient.
Sourcepub fn upper_tail_dependence(&self) -> f64
pub fn upper_tail_dependence(&self) -> f64
Get the upper tail dependence coefficient.
Trait Implementations§
Source§impl Clone for CopulaConfig
impl Clone for CopulaConfig
Source§fn clone(&self) -> CopulaConfig
fn clone(&self) -> CopulaConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CopulaConfig
impl Debug for CopulaConfig
Source§impl Default for CopulaConfig
impl Default for CopulaConfig
Source§impl<'de> Deserialize<'de> for CopulaConfig
impl<'de> Deserialize<'de> for CopulaConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CopulaConfig
impl RefUnwindSafe for CopulaConfig
impl Send for CopulaConfig
impl Sync for CopulaConfig
impl Unpin for CopulaConfig
impl UnwindSafe for CopulaConfig
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