Generic function to extract the distribution parameters (e.g. shape and
rate for Gamma) from a dist_spec object.
Examples
dist <- Gamma(shape = 3, rate = 2)
get_parameters(dist)
#> $shape
#> [1] 3
#>
#> $rate
#> [1] 2
#>
Generic function to extract the distribution parameters (e.g. shape and
rate for Gamma) from a dist_spec object.
dist <- Gamma(shape = 3, rate = 2)
get_parameters(dist)
#> $shape
#> [1] 3
#>
#> $rate
#> [1] 2
#>