gprm: Helper Functionality for Getting and Setting Distribution...

View source: R/sugar.R

gprmR Documentation

Helper Functionality for Getting and Setting Distribution Parameters

Description

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

Usage

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")
gprm(d, c("mean", "var"))
sprm(d, list(mean = 1, var = 3))
gprm(d, c("mean", "sd"))

distr6 documentation built on March 28, 2022, 1:05 a.m.