R/AllGenerics.R
, R/BDMethodList-constructor.R
, R/BenchDesign-accessors.R
, and 2 more
BDMethodList.Rd
Initializes a new SimpleList of BenchDesign method (BDMethod
) objects.
Similar to BDMethod
objects, BDMethodList
typically do not need to be
directly constructed. Because the list of methods is only useful as art of a
BenchDesign
object, it is more common to simply manipulate the
list of methods through calls to the corresponding BenchDesign
, e.g.
addMethod
to add a new method to the list.
The constructor can also be used to access the BDMethodList
list
of methods in a BenchDesign
object.
BDMethodList(..., x = NULL) # S4 method for ANY BDMethodList(..., x = NULL) # S4 method for BenchDesign BDMethodList(..., x = NULL) # S4 method for SummarizedBenchmark BDMethodList(..., x = NULL)
... | a named list of |
---|---|
x | a |
BDMethodList object
## construct an empty list bdml <- BDMethodList() ## construct a list with BDMethod objects bdml <- BDMethodList(m_method = BDMethod(base::mean), s_method = BDMethod(function(x) { x^2 })) bdml#> BenchDesign Method List (BDMethodList) --------------------- #> list of 2 methods #> method: m_method; func: base::mean #> method: s_method; func: function(x) {; ...## construct a BenchDesign with a BDMethodList bd <- BenchDesign(methods = bdml) ## access the BDMethodList in the BenchDesign BDMethodList(bd)#> BenchDesign Method List (BDMethodList) --------------------- #> list of 2 methods #> method: m_method; func: base::mean #> method: s_method; func: function(x) {; ...