R/dist_inverse_exponential.R
dist_inverse_exponential.Rd
dist_inverse_exponential(rate)
an alternative way to specify the scale.
dist <- dist_inverse_exponential(rate = 1:5)
dist
#> <distribution[5]>
#> [1] InvExp(1) InvExp(2) InvExp(3) InvExp(4) InvExp(5)
mean(dist)
#> [1] NA NA NA NA NA
variance(dist)
#> [1] NA NA NA NA NA
support(dist)
#> <support_region[5]>
#> [1] [0,Inf] [0,Inf] [0,Inf] [0,Inf] [0,Inf]
generate(dist, 10)
#> [[1]]
#> [1] 0.5896626 2.6287441 1.4588319 0.8357837 3.2557046 0.6186568 3.1663421
#> [8] 0.6744142 0.7599582 0.7124186
#>
#> [[2]]
#> [1] 1.0772494 0.3760602 1.9104707 0.2351214 0.3172928 0.6157982
#> [7] 33.4875297 1.5952881 0.8646049 1.1970563
#>
#> [[3]]
#> [1] 0.1577589 14.7344709 0.1671916 0.5305902 1.0837988 0.3013441
#> [7] 1.7254190 0.7319432 2.0881861 0.4512011
#>
#> [[4]]
#> [1] 0.11318074 2.94521803 0.11749572 1.29175346 0.08422479 2.31000800
#> [7] 15.81759899 0.24006460 0.16492254 0.22657177
#>
#> [[5]]
#> [1] 0.15397329 4.67991848 0.55714570 0.16586534 1.13160129 0.28612991
#> [7] 0.31925330 0.69650210 0.09155691 0.43722294
#>
density(dist, 2)
#> [1] 0.15163266 0.09735010 0.07054014 0.05515606 0.04524187
density(dist, 2, log = TRUE)
#> [1] -1.886294 -2.329442 -2.651573 -2.897589 -3.095732
cdf(dist, 4)
#> [1] 0.7788008 0.8824969 0.9200444 0.9394131 0.9512294
quantile(dist, 0.7)
#> [1] 2.8036733 1.4018366 0.9345578 0.7009183 0.5607347