public BayesNetSimulation(BayesPm pm) { this.randomGraph = new SingleGraph(pm.getDag()); this.pm = pm; }
public StandardizedSemSimulation(SemPm pm) { SemGraph graph = pm.getGraph(); graph.setShowErrorTerms(false); this.randomGraph = new SingleGraph(graph); this.pm = pm; }
public BayesNetSimulation(BayesIm im) { this.randomGraph = new SingleGraph(im.getDag()); this.im = im; this.pm = im.getBayesPm(); }
public SemSimulation(SemPm pm) { SemGraph graph = pm.getGraph(); graph.setShowErrorTerms(false); this.randomGraph = new SingleGraph(graph); this.pm = pm; }
public GeneralSemSimulation(GeneralizedSemPm pm) { SemGraph graph = pm.getGraph(); graph.setShowErrorTerms(false); this.randomGraph = new SingleGraph(graph); this.pm = pm; }
public GeneralSemSimulation(GeneralizedSemIm im) { SemGraph graph = im.getSemPm().getGraph(); graph.setShowErrorTerms(false); this.randomGraph = new SingleGraph(graph); this.im = im; this.ims = new ArrayList<>(); ims.add(im); this.pm = im.getGeneralizedSemPm(); }
public StandardizedSemSimulation(StandardizedSemIm im) { this.randomGraph = new SingleGraph(im.getSemPm().getGraph()); this.standardizedIm = im; this.pm = im.getSemPm(); }
public Simulation(GraphSource graphSource, Parameters parameters) { if (graphSource instanceof Simulation) { Simulation simulation = (Simulation) graphSource; this.simulation = simulation.simulation; this.parameters = new Parameters(simulation.parameters); this.name = simulation.name + ".copy"; this.fixedGraph = simulation.fixedGraph; this.fixedSimulation = simulation.fixedSimulation; // createSimulation(); // The suggestion is that you should't actually simulate before the user clicks 'simulate' } else { simulation = new BayesNetSimulation(new SingleGraph(graphSource.getGraph())); this.fixedGraph = true; this.parameters = parameters; this.fixedSimulation = false; setSourceGraph(graphSource.getGraph()); } }
public SemSimulation(SemIm im) { SemGraph graph = im.getSemPm().getGraph(); graph.setShowErrorTerms(false); this.randomGraph = new SingleGraph(graph); this.im = im; this.pm = im.getSemPm(); }
randomGraph = new SingleGraph(simulation.getSourceGraph()); } else { randomGraph = new SingleGraph(new EdgeListGraph());