| DistributionWrapper | R Documentation |
Abstract class that 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.
Returns error. Abstract classes cannot be constructed directly.
distr6::Distribution -> DistributionWrapper
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.
DistributionWrapper$wrappedModels(model = NULL)
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.
clone()The objects of this class are cloneable with this method.
DistributionWrapper$clone(deep = FALSE)
deepWhether to make a deep clone.
Gamma, Erich, Richard Helm, Ralph Johnson, and John Vlissides. 1994. “Design Patterns: Elements of Reusable Object-Oriented Software.” Addison-Wesley.
Other wrappers:
Convolution,
HuberizedDistribution,
MixtureDistribution,
ProductDistribution,
TruncatedDistribution,
VectorDistribution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.