rmultinomxl: Vectorized Multinomial Distribution For Large Numbers

Description Usage Arguments Details Value

View source: R/rmultinomxl.r

Description

Simulates one cycle of the PCR process.

Usage

1
rmultinomxl(n, size, prob, check = TRUE, debug = FALSE)

Arguments

n

numeric vector with number of observations.

size

numeric vector specifying the number of molecules going into the PCR cycle.

prob

numeric non-negative matrix of size (x x K) specifying the probability for the K classes.

check

logical for extended checking of parameters.

debug

logical to print debug information.

Details

Generate multinomially distributed random number vectors using rmultinomial. Handles integer overflow by splitting numbers in chunks and call rmultinomial repeatedly.

Value

matrix with simulated results


OskarHansson/pcrsim documentation built on Jan. 22, 2022, 11:55 a.m.