Skip to contents

Calculate Bhattacharyya Distance (BH)

Usage

calc_bhattacharyya(ref, sim, align = TRUE)

Arguments

ref

Numeric vector of reference values.

sim

Numeric vector of simulated values.

align

Logical, whether to align lengths. Default TRUE.

Value

Statistical divergence between discrete probability measures.

Examples

ref <- stats::rnorm(50)
sim <- stats::rnorm(50)
calc_bhattacharyya(ref, sim)
#> Metric: 'bhattacharyya' with unit: 'log'; comparing: 2 vectors
#> [1] 0.001950118