graphProbGivenOrder: Probability of a graph given an order.

Description Usage Arguments Value

View source: R/mcmc-order.R

Description

Probability of a graph given an order.

Usage

1
2
  graphProbGivenOrder(x, order, numberOfNodes, nodesSeq,
    scoresParents, parentsTables, allRows, rowsThatContain)

Arguments

x

A BN

order

A vector length numberOfNodes, giving a permuation of 1:numberOfNodes.

numberOfNodes

The number of nodes in the network. A numeric vector of length 1.

nodesSeq

The vector 1:nNodes(currentNetwork). (Supplied as an argument for possible speed gain)

scoresParents

A list of the form returned by scoreParentsTable()

parentsTables

A list of tables of the form returned by enumerateParentsTable()

allRows

The vector 1:nrow(parentsTables). (Supplied as an argument for possible speed gain)

rowsThatContain

A list of the form created by getRowsThatContain()

Value

The probabilty of that graph given the order.


rjbgoudie/structmcmc documentation built on Nov. 3, 2020, 3:41 a.m.