15unique_ptr<SiteContainerInterface> GivenDataSubstitutionProcessSequenceSimulator::simulate(
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++)
28 site->setCoordinate(
static_cast<int>(j));
std::vector< std::shared_ptr< GivenDataSubstitutionProcessSiteSimulator > > vSiteSim_
std::shared_ptr< const Alphabet > getAlphabet() const override
std::shared_ptr< LikelihoodCalculationSingleProcess > calcul_
Defines the basic types of data flow nodes.