Cmn: The number of all possible combinations of m elements among n...

View source: R/AuxFunc.R

CmnR Documentation

The number of all possible combinations of m elements among n with repetitions

Description

The number of all possible combinations of m elements among n with repetitions.

Usage

Cmn(m, n)

Arguments

m

the m elements to combine among n

n

the n elements from which to combine m elements with repetitions

Details

There are (n+m-1)!/(m!(n-1)!) ways to combine m elements among n with repetitions.

Note

Cmn was implemented as an auxiliary function for the dataL function which computes the likelihood of the observed alleles in a mixed DNA stain conditional on the number of contributors.

Author(s)

Hinda Haned <h.haned@nfi.minvenj.nl>

See Also

comb for all possible combinations of m elements among n with repetitions

Examples

## Not run: 
Cmn(2,3)
comb(2,3)

## End(Not run)

hindantation/forensim documentation built on Oct. 8, 2022, 4:42 a.m.