35 #ifndef OPENMS_SIMULATION_SIMTYPES_H 36 #define OPENMS_SIMULATION_SIMTYPES_H 42 #include <boost/shared_ptr.hpp> 44 #include <boost/random/mersenne_twister.hpp> 125 return biological_rng_;
130 return technical_rng_;
135 biological_rng_.seed(seed);
140 technical_rng_.seed(seed);
144 void initialize(
bool biological_random,
bool technical_random)
147 if (biological_random)
149 biological_rng_ = boost::random::mt19937_64(std::time(0));
153 biological_rng_ = boost::random::mt19937_64(0);
156 if (technical_random)
158 technical_rng_ = boost::random::mt19937_64(std::time(0));
162 technical_rng_ = boost::random::mt19937_64(0);
Peak1D SimPointType
Raw data point.
Definition: SimTypes.h:69
boost::random::mt19937_64 & getTechnicalRng()
Definition: SimTypes.h:128
FeatureMap FeatureMapSim
Sim FeatureMap.
Definition: SimTypes.h:97
Int ChargeType
Type of charge values.
Definition: BaseFeature.h:65
Wrapper class for random number generators used by the simulation classes.
Definition: SimTypes.h:119
A container for features.
Definition: FeatureMap.h:94
boost::shared_ptr< SimRandomNumberGenerator > MutableSimRandomNumberGeneratorPtr
Definition: SimTypes.h:175
PeakMap MSSimExperiment
Sim MSExperiment type.
Definition: SimTypes.h:103
std::vector< SimProtein > SampleProteins
Container for FASTAEntry & abundance information.
Definition: SimTypes.h:91
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
MetaInfoInterface meta
MetaInfoInterface holding the abundance information.
Definition: SimTypes.h:79
boost::random::mt19937_64 & getBiologicalRng()
Definition: SimTypes.h:123
Peak2D::IntensityType SimIntensityType
Abundance of proteins/peptides.
Definition: SimTypes.h:63
SimProtein(FASTAFile::FASTAEntry &e, MetaInfoInterface &m)
c'tor
Definition: SimTypes.h:84
FASTAFile::FASTAEntry entry
FASTAEntry holding the sequence information.
Definition: SimTypes.h:77
std::vector< SampleProteins > SampleChannels
Container for multiple channels of SampleProteins.
Definition: SimTypes.h:94
Peak2D::CoordinateType SimCoordinateType
Coordinate type in mz and rt dimension.
Definition: SimTypes.h:60
boost::random::mt19937_64 technical_rng_
random number generator for technical variability
Definition: SimTypes.h:170
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:55
Feature::ChargeType SimChargeType
Charge of a peptide.
Definition: SimTypes.h:66
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:82
std::vector< FeatureMapSim > FeatureMapSimVector
Sim FeatureMap Vector.
Definition: SimTypes.h:100
void initialize(bool biological_random, bool technical_random)
Initialize the RNGs.
Definition: SimTypes.h:144
void setTechnicalRngSeed(unsigned long int seed)
Definition: SimTypes.h:138
Plain data object holding sequence and abundance information on a single protein. ...
Definition: SimTypes.h:74
FASTA entry type (identifier, description and sequence)
Definition: FASTAFile.h:74
void setBiologicalRngSeed(unsigned long int seed)
Definition: SimTypes.h:133
boost::random::mt19937_64 biological_rng_
random number generator for biological variability
Definition: SimTypes.h:168