Description Usage Arguments Examples
Divide and conquer method of generating uniform random partitions of Q having N parts.
1 2 | divide_and_conquer(part, Q, N, D, rand_int, use_c,
use_hash)
|
part |
a list to hold the partition |
Q |
the total sum of the partition |
N |
Number of parts to sum over |
D |
a dictionary for the number of partitions of Q having N or less parts (or N or less as the largest part), i.e. P(Q, Q + N). |
rand_int |
a number representing a member of the feasible set |
use_c |
boolean if TRUE then compiled c code is used |
use_hash |
boolean, if TRUE then a hash table is used |
1 | divide_and_conquer(c(5, 4), 5, 4, hash(), 2, TRUE, FALSE)
|
Loading required package: hash
hash-3.0.1 provided by Decision Patterns
[1] 5 4 2 2 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.