Description Usage Arguments Details Value Examples
For each parameter, generate m sets of integer.
The parameters are the cartesian product of the cardinalities
, the precisions
, and the multi-modal distributions modes
.
1 | PartGenInt(m = 1, cardinalities = 10, precisions = 100, modes = 0)
|
m |
number of integer sets for each parameter |
cardinalities |
cardinalities of the integer sets. |
precisions |
maximum values of an integer. The minimal value is 1. |
modes |
a distribution mode (numeric vector) or a list of distribution modes (multi-modal distribution). |
The mode of an integer is drawn with a a uniform distribution. A mode is an integer such that : 0 <= mode : uniform distribution 0< mode <1 : binomial with probability of success 'mode' mode >= 1 : binomial with random probability of success
a list of partition problem's instances (numeric vector of strictly positive integers). The list is changed into a vector if its length is 1.
1 2 3 | PartGenInt()
PartGenInt( m = 2, cardinalities = c(5,10), precisions = c(10, 100))
PartGenInt( modes = list(0, 1, c(0.2, 0.8)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.