brute_cpp {expperm}R Documentation

Brute-force calculation of an expected permutation matrix using C++

Description

Computes an expected permutation matrix and marginal likelihood from a matrix of assignment likelihoods. The function literally enumerates all permutations so will be impractial for matrices with more than 10 rows.

Usage

brute_cpp(A)

Arguments

A

A matrix of assignment likelihoods.

Value

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

Examples

data(A)
brute_cpp(A)

[Package expperm version 1.6 Index]