# Vectorized Multinomial Distribution For Large Numbers

### 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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.