Skip to main content

belief-propagation.tppl

function makeStateMessage​

function makeStateMessage(interaction: Int) => Real[]

function observationMessage​

Compute leaf message from observed interactions

function observationMessage(obsRepertoire: Int[], i: Int, max: Int) => Real[]

function postorderTraverse​

Compute postorder messages on the observed tree

function postorderTraverse(
tree: TreeLabeled, qMatrix: Matrix[Real], interactions: Int[][], nhosts: Int
) => MsgTree