Learn R Programming

expperm (version 1.6)

BG_cpp: The Brualdi-Gibson method for computing an expected permutation matrix using C++

Description

Computes the expected permutation matrix and marginal likelihood from a tridiagonal matrix of assignment likelihoods using the Brualdi-Gibson method.

Usage

BG_cpp(A)

Arguments

A

A tridiagonal matrix of assignment likelihoods.

Value

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

Examples

Run this code
# NOT RUN {
data(triA)
BG_cpp(triA)
# }

Run the code above in your browser using DataLab