Skip to contents

Low level constructor function for creating distribution objects. Consider the user-facing constructor function, distribution().

Usage

new_distribution(l, ..., class = character())

Arguments

l

List containing the components of a distribution object.

...

Attributes to add to the list.

class

If making a subclass, specify its name here.

Value

The original list l with the specified attributes.

Examples

new_distribution(list(mean = 3))
#> Unnamed distribution