Given a desired annual mean attack rate and the number of epochs to consider per year, gives the alpha and beta parameters with the desired mean but maximum variance

find_beta_prior_with_mean(desired_annual_mean, buckets)

Arguments

desired_annual_mean

the desired ANNUAL mean attack rate

the

number of buckets to split each year into

Value

a list with alpha and beta

See also

Examples

find_beta_prior_with_mean(0.15, 1)
#> Maximum variance: 0.127499
#>
#> $alpha #> [1] 1.17648e-06 #> #> $beta #> [1] 6.666719e-06 #>