R/nparams.R

Defines functions nparams.fitted nparams.backend

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

  .Call(call_nparams_structure,
        graph = dag,
        data = data[, names(dag$nodes), drop = TRUE],
        estimator = estimator,
        debug = debug)

}#NPARAMS.BACKEND

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

  .Call(call_nparams_fitted,
        bn = bn,
        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 July 17, 2026, 5:08 p.m.