multi_pars_cal: Auxiliary function to mml_with_parents() and...

Description Usage Arguments

View source: R/multi_pars_cal.R

Description

This is an auxiliary function to both mml_with_parents() and mml_with_parents_fast() when the target node has multiple parents.

Usage

1
2
multi_pars_cal(indexListPerNodePerValue, commonParentsIndices, arityChild,
  targetIndex, alpha)

Arguments

indexListPerNodePerValue

A list of stored indices for each value of each node. It is obtained by the function count_occurance().

commonParentsIndices

commonParentsIndices

arityChild

arityChild

targetIndex

Index of the target node.

alpha

A vector of concentration parameters for a Dirichlet distribution. Range is from zeor to positive infinity, length is equal to the arity of the target variable.


kelvinyangli/mbmml documentation built on June 29, 2020, 3:12 a.m.