Learn R Programming

BiDAG (version 2.1.4)

compact2full: Deriving an adjecency matrix of a full DBN

Description

This function transforms a compact 2-slice adjacency matrix of DBN into full T-slice adjacency matrix

Usage

compact2full(DBNmat, slices, b = 0)

Value

an adjacency matrix of an unrolled DBN

Arguments

DBNmat

a square matrix, representing initial and transitional structure of a DBN; the size of matrix is 2*dyn+b

slices

integer, number of slices in an unrolled DBN

b

integer, number of static variables

Examples

Run this code
compact2full(DBNmat, slices=5, b=3)

Run the code above in your browser using DataLab