Skip to contents

Compute All Bivariate (2D) Distance & Accuracy Metrics for Joint Distributions

Usage

calc_all_bivariate_metrics(ref_mat, sim_mat, metric_prefix = "", threads = 1)

Arguments

ref_mat

2-column matrix for reference.

sim_mat

2-column matrix for simulation.

metric_prefix

Optional prefix string for metric names.

threads

CPU threads.

Value

Named list of bivariate metrics.

Examples

ref <- matrix(stats::rnorm(100), 50, 2)
sim <- matrix(stats::rnorm(100), 50, 2)
calc_all_bivariate_metrics(ref, sim)
#> Warning: argument is not numeric or logical: returning NA
#> Warning: emd: Maximum number of iterations has been reached (500)
#> $Fasano_Franceschini_2D_KS
#> [1] NA
#> 
#> $Peacock_2D_KS
#> [1] NA
#> 
#> $KDE_Bivariate_zstat
#> [1] -0.4091907
#> 
#> $EMD_2D
#> [1] 0.05224238
#> 
#> $NN_Mismatch_2D
#> [1] 0.05
#> 
#> $Between_Dataset_Silh_2D_Global
#> [1] -0.005316699
#> 
#> $Between_Dataset_Silh_2D_Local
#> [1] -0.0326988
#>