/** @return The number of parameters in this Bayesian network. */ public int calculateParameterCount() { int result = 0; for (BayesianEvent e : this.eventMap.values()) { result += e.calculateParameterCount(); } return result; }