private static UT discretizeContUF(IFunction cpf, BeliefNetwork bn)
throws Exception {
DiscretizationDomainMap dmap = new DiscretizationDomainMap(
cpf.getParentsDomains(), bn);
UT uT = new UT(cpf.getDomain().getName(),
dmap.getDiscretizedParentDomains());
int[] productStructureIterator = uT.index2addr(0);
boolean done = false;
while (!done) {
setOneOutputUTValue(productStructureIterator, uT, cpf, dmap);
done = uT.addOne(productStructureIterator);
}
return uT;
}