16 size_t numberOfSites)
const
18 if (numberOfSites > calcul_->getNumberOfSites())
19 throw BadIntegerException(
"GivenDataSubstitutionProcessSequenceSimulator::simulate. Too many sites to simulate.", (
int)numberOfSites);
21 auto seqNames = vSiteSim_[0]->getSequenceNames();
22 auto sites = make_unique<VectorSiteContainer>(seqNames, getAlphabet());
23 sites->setSequenceNames(seqNames,
true);
25 for (
size_t j = 0; j < numberOfSites; j++)
27 auto site = vSiteSim_[calcul_->getRootArrayPosition(j)]->simulateSite();
28 site->setCoordinate(
static_cast<int>(j));
std::unique_ptr< SiteContainerInterface > simulate() const
Defines the basic types of data flow nodes.