Simple wrapper around d$getParameterValue(p) and d$setParameterValue(lst).

gprm(d, p)

sprm(d, lst)

Arguments

d

(Distribution(1))
Distribution object.

p

(character())
Name(s) of parameters to written.

lst

(list(1))
Parameters to update.

Examples

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
#>