Helper function to lapply over the given distribution list, and make the short_names unique.

makeUniqueDistributions(distlist)

Arguments

distlist

list of Distributions.

Value

The list of inputted distributions except with the short_names manipulated as necessary to make them unique.

Details

The short_names are made unique by suffixing each with a consecutive number so that the names are no longer duplicated.

Examples

makeUniqueDistributions(list(Binomial$new(), Binomial$new()))
#> $Binom1
#> Binom1(prob = 0.5, size = 10) 
#> 
#> $Binom2
#> Binom2(prob = 0.5, size = 10) 
#>