bpp-phyl3  3.0.0
bpp::GivenDataSubstitutionProcessSequenceSimulator Class Reference

Sequences simulation under a unique substitution process, but with site specific posterior probabilities. More...

#include <Bpp/Phyl/Simulation/GivenDataSubstitutionProcessSequenceSimulator.h>

+ Inheritance diagram for bpp::GivenDataSubstitutionProcessSequenceSimulator:
+ Collaboration diagram for bpp::GivenDataSubstitutionProcessSequenceSimulator:

Public Member Functions

 GivenDataSubstitutionProcessSequenceSimulator (std::shared_ptr< LikelihoodCalculationSingleProcess > calcul)
 
virtual ~GivenDataSubstitutionProcessSequenceSimulator ()
 
 GivenDataSubstitutionProcessSequenceSimulator (const GivenDataSubstitutionProcessSequenceSimulator &nhss)
 
GivenDataSubstitutionProcessSequenceSimulatorclone () const override
 
void outputInternalSequences (bool yn) override
 Sets whether we will output the internal sequences or not. More...
 
The SequenceSimulator interface

Here the numberOfSites is unused (awkward inheritance...)

std::unique_ptr< SiteContainerInterfacesimulate () const
 
std::unique_ptr< SiteContainerInterfacesimulate (size_t numberOfSites) const override
 
const SiteSimulatorInterfacesiteSimulator (size_t pos) const override
 
SiteSimulator and SequenceSimulator interface
std::shared_ptr< const AlphabetgetAlphabet () const override
 
const Alphabetalphabet () const override
 
std::vector< std::string > getSequenceNames () const override
 
size_t getNumberOfSites () const
 the number of mapped sites. More...
 

Private Attributes

std::shared_ptr< LikelihoodCalculationSingleProcesscalcul_
 
std::vector< std::shared_ptr< GivenDataSubstitutionProcessSiteSimulator > > vSiteSim_
 

Detailed Description

Sequences simulation under a unique substitution process, but with site specific posterior probabilities.

Definition at line 18 of file GivenDataSubstitutionProcessSequenceSimulator.h.

Constructor & Destructor Documentation

◆ GivenDataSubstitutionProcessSequenceSimulator() [1/2]

bpp::GivenDataSubstitutionProcessSequenceSimulator::GivenDataSubstitutionProcessSequenceSimulator ( std::shared_ptr< LikelihoodCalculationSingleProcess calcul)
inline

Definition at line 34 of file GivenDataSubstitutionProcessSequenceSimulator.h.

References calcul_, and vSiteSim_.

Referenced by clone().

◆ ~GivenDataSubstitutionProcessSequenceSimulator()

virtual bpp::GivenDataSubstitutionProcessSequenceSimulator::~GivenDataSubstitutionProcessSequenceSimulator ( )
inlinevirtual

◆ GivenDataSubstitutionProcessSequenceSimulator() [2/2]

bpp::GivenDataSubstitutionProcessSequenceSimulator::GivenDataSubstitutionProcessSequenceSimulator ( const GivenDataSubstitutionProcessSequenceSimulator nhss)
inline

Member Function Documentation

◆ alphabet()

const Alphabet& bpp::GivenDataSubstitutionProcessSequenceSimulator::alphabet ( ) const
inlineoverridevirtual

◆ clone()

GivenDataSubstitutionProcessSequenceSimulator* bpp::GivenDataSubstitutionProcessSequenceSimulator::clone ( ) const
inlineoverridevirtual

◆ getAlphabet()

std::shared_ptr<const Alphabet> bpp::GivenDataSubstitutionProcessSequenceSimulator::getAlphabet ( ) const
inlineoverridevirtual

◆ getNumberOfSites()

size_t bpp::GivenDataSubstitutionProcessSequenceSimulator::getNumberOfSites ( ) const
inline

the number of mapped sites.

Definition at line 96 of file GivenDataSubstitutionProcessSequenceSimulator.h.

References calcul_.

◆ getSequenceNames()

std::vector<std::string> bpp::GivenDataSubstitutionProcessSequenceSimulator::getSequenceNames ( ) const
inlineoverridevirtual

◆ outputInternalSequences()

void bpp::GivenDataSubstitutionProcessSequenceSimulator::outputInternalSequences ( bool  yn)
inlineoverridevirtual

Sets whether we will output the internal sequences or not.

Parameters
ynTell if we should output internal sequences.

Implements bpp::SequenceSimulatorInterface.

Definition at line 109 of file GivenDataSubstitutionProcessSequenceSimulator.h.

References vSiteSim_.

◆ simulate() [1/2]

std::unique_ptr<SiteContainerInterface> bpp::GivenDataSubstitutionProcessSequenceSimulator::simulate ( ) const
inline

◆ simulate() [2/2]

unique_ptr< SiteContainerInterface > GivenDataSubstitutionProcessSequenceSimulator::simulate ( size_t  numberOfSites) const
overridevirtual

◆ siteSimulator()

const SiteSimulatorInterface& bpp::GivenDataSubstitutionProcessSequenceSimulator::siteSimulator ( size_t  pos) const
inlineoverridevirtual

Member Data Documentation

◆ calcul_

std::shared_ptr<LikelihoodCalculationSingleProcess> bpp::GivenDataSubstitutionProcessSequenceSimulator::calcul_
private

◆ vSiteSim_

std::vector<std::shared_ptr<GivenDataSubstitutionProcessSiteSimulator> > bpp::GivenDataSubstitutionProcessSequenceSimulator::vSiteSim_
private

The documentation for this class was generated from the following files: