Learn R Programming

dbnR (version 0.7.8)

calc_mu_cpp: Calculate the mu vector of means of a Gaussian linear network. This is the C++ backend of the function.

Description

Calculate the mu vector of means of a Gaussian linear network. This is the C++ backend of the function.

Usage

calc_mu_cpp(fit, order)

Value

the map with the nodes and their mu. Returns as a named numeric vector

Arguments

fit

a bn.fit object as a Rcpp::List

order

a topological ordering of the nodes as a vector of strings