// save memory?
boolean saveMemory = false;
// output model and parametrizer
DiscreteDistribution dd = new DiscreteDistribution(initialParameters.getOutputParameters(0));
dd.setPrior(prior);
EM em = new EM(_obs, eventBased, initialParameters.getNStates(), initialParameters.isReversible(), dd, dd, saveMemory);
em.setInitialParameters(initialParameters);
return em;
}