"else if( a1 && b2 ) { C1:0.9; C2:0.1;} " +
"else if( a2 && b1 ) { C1:0.7; C2:0.3;} " +
"else if( a2 && b2 ) { C1:0.5; C2:0.5;} }"
);
EDBUnit cpt = EDB.This().get("ROOT.NODES.C.CPT");
EDBUnit cpt2 = new EDBUnit(cpt);
EDBUnit states = EDB.This().get("ROOT.NODES.A.STATES");
EDBUnit statesA = new EDBUnit(states);
statesA.setName("A");
EDBUnit statesB = EDB.This().get("ROOT.NODES.B.STATES");
statesB.setName("B");
cpt2.print("");
//statesA.print("");
CPTOperator.This().doToCPT( OPERATOR.DOT_MULTIPLY, cpt2, statesA );
cpt2.print(".* ");
CPTOperator.This().doToCPT( OPERATOR.DOT_NORMALIZE, cpt2 );
cpt2.print("normalized ");
CPTOperator.This().doToVector( OPERATOR.DOT_MULTIPLY, states, statesA );
states.print(".* ");
CPTOperator.This().normalizeVector(states);
states.print("normalized ");
CPTOperator.This().normalizeCPT(cpt2, states);
states.print("nomalized CPT ");
cpt2.print("CPT ");
statesB.print("states2 ");
EDBUnit ret = CPTOperator.This().marginalizeCPT(cpt2, statesB);
ret.print("marginalizeCPT ");
}