copula-core 0.2.0

Copula modelling, simulation, and dependence analysis (experimental, pre-1.0)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[cfg(feature = "estimation")]
use copula_core::prelude::*;
#[cfg(feature = "estimation")]
#[cfg(feature = "estimation")]
#[test]
fn k_fold_cv_produces_score() {
    let mut rng = rand::rng();
    let orig = ClaytonCopula::new(2.0).unwrap();
    let data = orig.sample(200, &mut rng).unwrap();
    let template = ClaytonCopula::new(1.0).unwrap();
    let score = k_fold_cv(template, &data, 5, &mut rng).unwrap();
    assert!(score.is_finite());
}