ModelScale Class Reference

Model scale random property. More...

#include <Randomiser.hh>

Public Member Functions

 ModelScale (IRandomSampler *sampler_, bool additive_, std::vector< std::string > &models_)
 Constructor. More...
 
 ~ModelScale () override
 Destructor. More...
 
void fillMsg (DRRequest &msg, DRInterface &api, std::mt19937 &gen, std::string &target) override
 Fill DR request message. More...
 
- Public Member Functions inherited from RandomProperty
 RandomProperty (IRandomSampler *sampler_, bool additive_)
 Constructor. More...
 
virtual ~RandomProperty ()
 Destructor. More...
 

Public Attributes

std::vector< std::string > models
 List of affected models. More...
 
- Public Attributes inherited from RandomProperty
IRandomSamplersampler
 Random distribution sampler. More...
 
bool additive
 Whether term is additive or a scaling factor. More...
 

Additional Inherited Members

- Static Public Attributes inherited from RandomProperty
static const char CFG_TARGET_OBJ [] = "TARGET_OBJECT"
 Target object yml keyword string. More...
 

Detailed Description

Model scale random property.

Constructor & Destructor Documentation

ModelScale ( IRandomSampler sampler_,
bool  additive_,
std::vector< std::string > &  models_ 
)

Constructor.

Parameters
sampler_PRNG sampler
additive_Whether term is addictive or a scaling factor
models_List of affected models
Warning
std::vectors params are moved inside instance!
~ModelScale ( )
inlineoverride

Destructor.

Member Function Documentation

void fillMsg ( DRRequest msg,
DRInterface &  api,
std::mt19937 &  gen,
std::string &  target 
)
overridevirtual

Fill DR request message.

Parameters
msgDR request message
apiDR interface
genPRNG
targetName of target object

Reimplemented from RandomProperty.

Member Data Documentation

std::vector<std::string> models

List of affected models.


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