sink_cpp: A variational approximation of an expected permutation matrix...

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

Computes an approximate expected permutation matrix and marginal likelihood from a matrix of assignment likelihoods. The approximation minimizes a constrained KL divergence from the likelihood, and is computed via the repeated renormalization of the input's rows and columns.

Usage

1
sink_cpp(A, maxit = 99)

Arguments

A

A matrix of assignment likelihoods.

maxit

An integer specifying the maximum number of steps used in the optimization.

Value

E(P), the expected permutation matrix corresponding to A.

Examples

1
2

expperm documentation built on May 29, 2019, 1:02 a.m.