full2compact: Deriving a compact adjacency matrix of a DBN

View source: R/DBNfns.R

full2compactR Documentation

Deriving a compact adjacency matrix of a DBN

Description

This function transforms an unrolled adjacency matrix of DBN into a compact representation

Usage

full2compact(DBNmat, b = 0)

Arguments

DBNmat

a square matrix, representing the structure of an unrolled DBN; the size of matrix is slices*dyn+b; all static variables are assumed to be in the first b rows and columns of the matrix

b

integer, number of static variables; 0 by default

Examples

full2compact(DBNunrolled,b=3)

BiDAG documentation built on May 31, 2023, 6:46 p.m.

Related to full2compact in BiDAG...