This decorator adds numeric methods for missing analytic expression in distr6 Distribution objects as well as adding generalised expectation and moments functions.
Returns a decorated R6 object inheriting from class SDistribution with the methods listed below added to the SDistribution methods.
Decorator objects add functionality to the given Distribution object by copying methods in the decorator environment to the chosen Distribution environment. See the 'Added Methods' section below to find details of the methods that are added to the Distribution. Methods already present in the distribution are not overwritten by the decorator.
decorate to decorate a Distribution.
All methods in this decorator use numerical approximations and therefore better results may be available from analytic computations.
|distribution||Distribution to decorate.|
|Moment generating function|
|Probability generating function|