multinomial_coeff calculates multinomial coefficients given locus data, mainly for internal use by imprinting_est.

multinomial_coeff(ref_counts, var_counts)

Arguments

ref_counts

Numeric vector. Reference count(s).

var_counts

Numeric vector. Variant count(s).

Value

The multinomial coefficient(s) of ref_counts and var_counts.

Examples

multinomial_coeff(5, 11)
#> Big Rational ('bigq') :
#> [1] 4368
multinomial_coeff(c(5, 8, 10, 3, 5, 6, 23), c(8, 8, 6, 4, 4, 10, 0))
#> Big Rational ('bigq') object of length 7:
#> [1] 1287  12870 8008  35    126   8008  1