
Get a distribution's representation as a function
Source:R/representation_as_function.R
representation_as_function.Rd
Get a distribution's representation as a function
Examples
d <- dst_nbinom(10, 0.4)
cdf <- distionary:::representation_as_function(d, "cdf")
cdf(0:10)
#> [1] 0.0001048576 0.0007340032 0.0028101837 0.0077930168 0.0175095415
#> [6] 0.0338333029 0.0583189450 0.0918992542 0.1347141484 0.1860920214
#> [11] 0.2446627967