scaleParameterValues: Scale current values of parameters using a factor

View source: R/utilities-parameter.R

scaleParameterValuesR Documentation

Scale current values of parameters using a factor

Description

Scale current values of parameters using a factor

Usage

scaleParameterValues(parameters, 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)

Open-Systems-Pharmacology/OSPSuite-R documentation built on Feb. 14, 2025, 4:48 p.m.