sam::ExperimentSetupBuilder¶
Module: Abstract Factory Builders
Public Functions¶
Name | |
---|---|
ExperimentSetupBuilder() =default | |
ExperimentSetupBuilder & | fromConfigFile(json & config) Create and configure a new experiment setup based on the given configuration. |
ExperimentSetupBuilder & | setSeed(const int s) Sets the seed for randomizing setup parameters. |
ExperimentSetupBuilder & | setNumConditions(const int nc) |
ExperimentSetupBuilder & | setNumDependentVariables(const int nd) |
ExperimentSetupBuilder & | setNumItems(const int ni) |
ExperimentSetupBuilder & | setNumObservations(const int nobs) |
ExperimentSetupBuilder & | setNumObservations(const arma::Row< int > & nobs) |
ExperimentSetupBuilder & | setTestStrategyParameters(json & test_strategy_config) |
ExperimentSetupBuilder & | setDataStrategyParameters(json & data_strategy_config) |
ExperimentSetupBuilder & | setEffectStrategyParameters(json & effect_strategy_config) |
ExperimentSetup | build() |
Public Functions Documentation¶
function ExperimentSetupBuilder¶
ExperimentSetupBuilder() =default
function fromConfigFile¶
ExperimentSetupBuilder & fromConfigFile(
json & config
)
Create and configure a new experiment setup based on the given configuration.
function setSeed¶
inline ExperimentSetupBuilder & setSeed(
const int s
)
Sets the seed for randomizing setup parameters.
Parameters:
- s seed
Return: A reference to the builder
function setNumConditions¶
inline ExperimentSetupBuilder & setNumConditions(
const int nc
)
function setNumDependentVariables¶
inline ExperimentSetupBuilder & setNumDependentVariables(
const int nd
)
function setNumItems¶
inline ExperimentSetupBuilder & setNumItems(
const int ni
)
function setNumObservations¶
inline ExperimentSetupBuilder & setNumObservations(
const int nobs
)
function setNumObservations¶
inline ExperimentSetupBuilder & setNumObservations(
const arma::Row< int > & nobs
)
Todo: Recover this, it's been removed during the Parameter transition
function setTestStrategyParameters¶
inline ExperimentSetupBuilder & setTestStrategyParameters(
json & test_strategy_config
)
function setDataStrategyParameters¶
inline ExperimentSetupBuilder & setDataStrategyParameters(
json & data_strategy_config
)
function setEffectStrategyParameters¶
inline ExperimentSetupBuilder & setEffectStrategyParameters(
json & effect_strategy_config
)
function build¶
inline ExperimentSetup build()
Updated on 29 June 2021 at 16:13:48 CEST
Last update: 2021-09-18