compute_distances_gen_obs_cpp: Compute distances between summary statistics.

Description Usage Arguments Value See Also

View source: R/RcppExports.R

Description

Compute distances between summary statistics.

Usage

1
2
3
4
5
6
compute_distances_gen_obs_cpp(
  mtx_gen,
  mtx_obs,
  p_norm = 2,
  use_optimized_summary = FALSE
)

Arguments

mtx_gen

the generated data matrix; number of rows is free, it must have the same number of columns as mtx_obs

mtx_obs

the observed data matrix; number of rows is free, it must have the same number of columns as mtx_gen

p_norm

exponent of the L^p norm (can be Inf) (default: 2)

use_optimized_summary

if TRUE, use quantile matrix, else compute mean and sd vectors

Value

a vector of distances between summary statistics: as many entries as summary statistics

See Also

Other ABC functions: compute_ABC_cpp(), generate_acceptable_data_cpp(), sample_ABC_rdirdirgamma_beta_cpp()


lgaborini/rdirdirgamma documentation built on March 6, 2021, 3:05 p.m.