swap_rcpp: The swapping algorithm for computing Wasserstein barycenters

Description Usage Arguments Value

View source: R/RcppExports.R

Description

The swapping algorithm for computing Wasserstein barycenters

Usage

1
swap_rcpp(samples, acc = 0.001, iter = 10L, out = FALSE)

Arguments

samples

A cube containing samples for all subset posteriors (rows = subsets, columns = par, slices = samples)

acc

accuracy

iter

maximum number of iterations of the algorithm

out

boolean indicating whether output for each iteration should be displayed (default = false)

Value

a three dimensional array (rows = subsets, columns = par, slices = samples) containing output from the swapping algorithm.


waspr documentation built on July 25, 2020, 1:06 a.m.