Learn R Programming

dbnR (version 0.7.1)

Causlist: This file contains all the classes needed for the PSOHO structure learning algorithm. It was implemented as an independent package in https://github.com/dkesada/PSOHO and then merged into dbnR. All the original source files are merged into one to avoid bloating the R/ folder of the package.

Description

Constructor of the 'Causlist' class

Arguments

ordering

a vector with the names of the nodes in t_0

size

number of timeslices of the DBN

Value

A new 'causlist' object

Fields

cl

List of causal units

size

Size of the DBN

ordering

String vector defining the order of the nodes in a timeslice

Details

The classes are now not exported because the whole algorithm is encapsulated inside the package and only the resulting dbn structure is wanted. As a result, many security checks have been omitted. R6 class that defines causal lists in the PSO

The causal lists will be the base of the positions and the velocities in the pso part of the algorithm.