PartGenInt: Generate a list of partition problem's instances

Description Usage Arguments Details Value Examples

Description

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.

Usage

1
PartGenInt(m = 1, cardinalities = 10, precisions = 100, modes = 0)

Arguments

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).

Details

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

Value

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.

Examples

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

arnaud-m/partition documentation built on May 10, 2019, 1:44 p.m.