getRowsThatContain: Create lookup table for parentsTable.

Description Usage Arguments Value See Also

View source: R/parents-table.R

Description

Creates a list that allows quick lookup of a parentsTable. This is needed for whichParentSetRows.

Usage

1
2
  getRowsThatContain(numberOfNodes, parentsTables,
    maxNumberParents)

Arguments

numberOfNodes

The number of nodes. A numeric vector.

parentsTables

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

maxNumberParents

The maximum indegree for each node. A numeric vector of length 1.

Value

A list of length numberOfNodes. Each component of this list is a list of length numberOfNodes, the i^th component of which is a numeric vector containing the indicies of parentsTables[[node]] that correspond to parent sets including i.

See Also

enumerateParentsTable, scoreParentsTable


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