get_distribution: Get the distribution of a <dist_spec>

View source: R/dist_spec.R

get_distributionR Documentation

Get the distribution of a ⁠<dist_spec>⁠

Description

[Experimental]

Usage

get_distribution(x, id = NULL)

Arguments

x

A ⁠<dist_spec>⁠.

id

Integer; the id of the distribution to use (if x is a composite distribution). If x is a single distribution this is ignored and can be left at its default value of NULL.

Value

A character string naming the distribution (or "nonparametric")

Examples

dist <- Gamma(shape = 3, rate = 2, max = 10)
get_distribution(dist)

epiforecasts/EpiNow2 documentation built on Aug. 24, 2024, 5:53 p.m.