Scale current values of parameters using a factor
Source:R/utilities-parameter.R
scaleParameterValues.Rd
Scale current values of parameters using a factor
Arguments
- parameters
A single or a list of
Parameter
- factor
A numeric value that will be used to scale all parameters
See also
getParameter()
and getAllParametersMatching()
to create objects of type Parameter
Examples
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
sim <- loadSimulation(simPath)
param <- getParameter("Organism|Liver|Volume", sim)
scaleParameterValues(param, 1)
params <- getAllParametersMatching("Organism|**|Volume", sim)
scaleParameterValues(params, 1.5)