density_metrics | R Documentation |
A collection of functions to compute various distances between two probability distributions, which are used to assess the quality of the density estimate.
kl_div(
true_density,
density_estimate,
minus_const = 0,
mc_batch_size = 1000,
mc_rel_tol_param = 0.01,
print_error = FALSE
)
hyvarinen_div(
true_density,
density_estimate,
mc_batch_size = 1000,
mc_rel_tol_param = 0.01,
print_error = FALSE
)
L1_dist(
true_density,
density_estimate,
minus_const = 0,
mc_batch_size = 1000,
mc_rel_tol_param = 0.01,
print_error = FALSE
)
hellinger_dist(
true_density,
density_estimate,
minus_const = 0,
mc_batch_size = 1000,
mc_rel_tol_param = 0.01,
print_error = FALSE
)
true_density |
An |
density_estimate |
An object of class "LogConcaveDESM",
usually the output of |
minus_const |
A numeric to be subtracted in the exponent to
ensure the finite-ness of the integration result. Default is |
mc_batch_size |
A numeric to specify the batch size of each Monte Carlo draw of random samples.
Default is |
mc_rel_tol_param |
A numeric to specify the criterion of terminating the batch Monte Carlo algorithm.
Default is |
print_error |
A logical value to specify whether to print the error after each Monte Carlo draw.
Default is |
The approximate value of the probability distribution distance.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.