R/sugar.R
gprm.Rd
Simple wrapper around d$getParameterValue(p) and d$setParameterValue(lst).
gprm(d, p) sprm(d, lst)
(Distribution(1)) Distribution object.
Distribution(1)
(character()) Name(s) of parameters to written.
character()
(list(1)) Parameters to update.
list(1)
d <- dstr("Norm") gprm(d, "mean") #> [1] 0 gprm(d, c("mean", "var")) #> $mean #> [1] 0 #> #> $var #> [1] 1 #> sprm(d, list(mean = 1, var = 3)) gprm(d, c("mean", "sd")) #> $mean #> [1] 1 #> #> $sd #> [1] 1.732051 #>