use of edu.cmu.tetrad.sem.SemUpdater in project tetrad by cmu-phil.
the class TestSemUpdater method testUpdate.
@Test
public void testUpdate() {
Graph graph = constructGraph1();
SemPm semPm = new SemPm(graph);
SemIm semIm = new SemIm(semPm);
List<Node> nodes = semIm.getVariableNodes();
SemUpdater semUpdater = new SemUpdater(semIm);
SemEvidence evidence = new SemEvidence(semIm);
evidence.getProposition().setValue(nodes.get(4), 10.0);
evidence.getProposition().setValue(nodes.get(2), 1.5);
semUpdater.setEvidence(evidence);
evidence.setManipulated(1, true);
semUpdater.getManipulatedSemIm();
semUpdater.getUpdatedSemIm();
}
Aggregations