dst_null: Empty / NULL distribution

View source: R/dst_null.R

dst_nullR Documentation

Empty / NULL distribution

Description

Sometimes it's convenient to work with a distribution object that is empty, akin to a NULL value. This is especially true when programmatically outputting distributions, such as when a distribution fails to fit to data. This contructor makes such a distribution object. It always evaluates to an NA vector.

Usage

dst_null()

Value

Distribution object of class "dst_null".

Examples

x <- dst_null()
mean(x)
eval_pmf(x, at = 1:10)
enframe_hazard(x, at = 1:10)

vincenzocoia/distionary documentation built on March 5, 2024, 3:13 a.m.