Abstract class that cannot be constructed directly.
Returns error. Abstract classes cannot be constructed directly.
Wrappers in distr6 use the composite pattern (Gamma et al. 1994), so that a wrapped distribution has the same methods and fields as an unwrapped one. After wrapping, the parameters of a distribution are prefixed with the distribution name to ensure uniqueness of parameter IDs.
Use listWrappers function to see constructable wrappers.
Gamma, Erich, Richard Helm, Ralph Johnson, and John Vlissides. 1994. “Design Patterns: Elements of Reusable Object-Oriented Software.” Addison-Wesley.
distr6::Distribution
-> DistributionWrapper
Inherited methods
distr6::Distribution$cdf()
distr6::Distribution$confidence()
distr6::Distribution$correlation()
distr6::Distribution$getParameterValue()
distr6::Distribution$iqr()
distr6::Distribution$liesInSupport()
distr6::Distribution$liesInType()
distr6::Distribution$median()
distr6::Distribution$parameters()
distr6::Distribution$pdf()
distr6::Distribution$prec()
distr6::Distribution$print()
distr6::Distribution$quantile()
distr6::Distribution$rand()
distr6::Distribution$setParameterValue()
distr6::Distribution$stdev()
distr6::Distribution$strprint()
distr6::Distribution$summary()
distr6::Distribution$workingSupport()
new()
Creates a new instance of this R6 class.
DistributionWrapper$new(
distlist = NULL,
name,
short_name,
description,
support,
type,
valueSupport,
variateForm,
parameters = NULL,
outerID = NULL
)
distlist
(list())
List of Distributions.
name
(character(1))
Wrapped distribution name.
short_name
(character(1))
Wrapped distribution ID.
description
(character())
Wrapped distribution description.
support
([set6::Set])
Wrapped distribution support.
type
([set6::Set])
Wrapped distribution type.
valueSupport
(character(1))
Wrapped distribution value support.
variateForm
(character(1))
Wrapped distribution variate form.
parameters
([param6::ParameterSet])
Optional parameters to add to the internal collection, ignored if distlist
is given.
outerID
([param6::ParameterSet])
Parameters added by the wrapper.
wrappedModels()
Returns model(s) wrapped by this wrapper.
model
(character(1))
id of wrapped Distributions to return. If NULL
(default), a list of all wrapped
Distributions is returned; if only one Distribution is matched then this is returned,
otherwise a list of Distributions.