Convert internal representation of networks.

Share:

Description

Converts from representing the network as a list of target nodes to representing it as a list of segments.

Usage

1
convert_nets(Ball, Eall)

Arguments

Ball

Input network: List of target nodes, where each element is a NumSegs by NumNodes matrix giving the parents for the target node in each segment.

Eall

Changepoints: List of target nodes, where each element contains a vector of changepoints.

Value

List with elements:

B_nets

List of segments, where each element contains a matrix of size NumNodes by NumNodes, representing the network for that segment.

segs

Vector containing the global segment boundaries.

Author(s)

Frank Dondelinger

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.