for (BNNode node : nodes) {
if (node.getFunction() instanceof TabularCPD) {
TabularCPD function = (TabularCPD) node.getFunction();
DistTable dtable = new DistTable(
(DiscreteDomain) function.getDomain(),
function.getParentsDomains());
dtable.setUniformDistributions();
node.setProperty("distribution", dtable);
node.setFunction(dtable.createCPF());
}
}
}