Abstract class that cannot be constructed directly.
Returns error. Abstract classes cannot be constructed directly.
An R6 object.
packages
Packages required to be installed in order to construct the distribution.
methods
Returns the names of the available methods in this decorator.
new()
Creates a new instance of this R6 class.
DistributionDecorator$new()
decorate()
Decorates the given distribution with the methods available in this decorator.
DistributionDecorator$decorate(distribution, ...)
distribution
Distribution Distribution to decorate.
...
ANY
Extra arguments passed down to specific decorators.
clone()
The objects of this class are cloneable with this method.
DistributionDecorator$clone(deep = FALSE)
deep
Whether to make a deep clone.
Decorating is the process of adding methods to classes that are not part of the core interface (Gamma et al. 1994). Use listDecorators to see which decorators are currently available. The primary use-cases are to add numeric results when analytic ones are missing, to add complex modelling functions and to impute missing d/p/q/r functions.
Use decorate or $decorate
to decorate distributions.
Gamma, Erich, Richard Helm, Ralph Johnson, and John Vlissides. 1994. <U+201C>Design Patterns: Elements of Reusable Object-Oriented Software.<U+201D> Addison-Wesley.