Skip to contents

Compute All Univariate Distance & Accuracy Metrics for a Feature

Usage

calc_all_univariate_metrics(ref, sim, metric_prefix = "")

Arguments

ref

Numeric vector of reference values.

sim

Numeric vector of simulated values.

metric_prefix

Optional prefix string for metric names.

Value

Named list of univariate distance metrics.

Examples

ref <- stats::rnorm(50)
sim <- stats::rnorm(50)
calc_all_univariate_metrics(ref, sim)
#> Metric: 'bhattacharyya' with unit: 'log'; comparing: 2 vectors
#> $MAD
#> [1] 0.1460812
#> 
#> $KS
#> [1] 0.1558038
#> 
#> $MAE
#> [1] 0.2166578
#> 
#> $RMSE
#> [1] 0.289772
#> 
#> $OV
#> [1] 0.9065606
#> 
#> $Bhattacharyya
#> [1] 0.003262482
#> 
#> $Wasserstein
#> [1] 0.2166578
#> 
#> $ECDF_DiffArea
#> [1] 0.05254994
#> 
#> $Runs_Statistic
#> [1] -1.608143
#> 
#> $Runs_PValue
#> [1] 0.05390198
#> 
#> $NN_Mismatch
#> [1] 0.1
#> 
#> $Between_Dataset_Silh_Global
#> [1] -0.001658093
#> 
#> $Between_Dataset_Silh_Local
#> [1] 0.0626862
#>