R/nparams.R

Defines functions nparams.fitted nparams.backend

# number of parameters for a DAG and an associated data set.
nparams.backend = function(x, data, debug = FALSE) {

  .Call(call_nparams_cgnet,
        graph = x,
        data = .data.frame.column(data, names(x$nodes)),
        debug = debug)

}#NPARAMS.BACKEND

# number of parameters for a fitted network.
nparams.fitted = function(x, effective = FALSE, debug = FALSE) {

  .Call(call_nparams_fitted,
        bn = x,
        effective = effective,
        debug = debug)

}#NPARAMS.FITTED

Try the bnlearn package in your browser

Any scripts or data that you put into this service are public.

bnlearn documentation built on Sept. 7, 2021, 1:07 a.m.