| PARAM_BASEVAR-class | R Documentation |
Extends 'PROB_BASEVAR' so that one of the distribution parameters (Mean, Sd or DistributionType) can be **swept** over a user-defined vector of values.
The method 'nextParam()' advances 'pos' (circularly) and updates the basic fields ('Mean', 'Sd', 'DistributionType', 'DistributionParameters') before calling 'prepare()' again. 'getCurrentParam()' returns the *last* value that was used (convenient for readable run names).
ParamValuesNumeric vector holding the values that will be assigned during the sweep.
ParamTypeWhich parameter is varied: '"Mean"', '"Sd"' or '"DistributionType"'.
posCurrent index inside 'ParamValues' (used internally).
(C) 2021-2026 K. Nille-Hauf, T. Feiri, M. Ricker, T. Lux – Hochschule Biberach (until 2022), TU Dortmund University - Chair of Structural Concrete (since 2023)
pvar <- PARAM_BASEVAR(
Name = "E_mod",
DistributionType = "norm",
Sd = 3000,
ParamType = "Mean",
ParamValues = c(30e3, 35e3, 40e3)
)
pvar$getCurrentParam() # first value (30000), set by the constructor
pvar$nextParam() # sets Mean = 35000 and prepares the distribution
pvar$getCurrentParam()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.