rpartitions: Code for integer partitioning

Provides algorithims for randomly sampling a feasible set defined by a given total and number of elements using integer partitioning.

Author
Ken Locey, Daniel McGlinn
Date of publication
2013-12-11 07:34:59
Maintainer
Daniel McGlinn <danmcglinn@gmail.com>
License
MIT
Version
0.1
URLs

View on CRAN

Man pages

bottom_up
Bottom up method of generating uniform random partitions of Q...
conjugate
Find the conjugate of an integer partition Recoded (orginally...
divide_and_conquer
Divide and conquer method of generating uniform random...
get_multiplicity
Find the number of times a value k occurs in a partition that...
get_rand_int
Generate a random integer between two integers
last
Returns the last element of a vector
multiplicity
multiplicity method of generating uniform random partitions...
NrParts
Find the number of partitions for a given total Q and number...
P
Number of partitions of Q with k or less parts.
rand_partitions
Generate uniform random partitions of Q having N parts.
rpartitions
rpartitions
top_down
Top down method of generating uniform random partitions of Q...

Files in this package

rpartitions
rpartitions/inst
rpartitions/inst/CITATION
rpartitions/inst/tests
rpartitions/inst/tests/testfiles
rpartitions/inst/tests/testfiles/sage_q=50_n=10.txt
rpartitions/inst/tests/testfiles/sage_q=200_n=40.txt
rpartitions/inst/tests/testfiles/sage_q=100_n=20.txt
rpartitions/inst/tests/testfiles/sage_zeros_q=200_n=40.txt
rpartitions/inst/tests/testfiles/sage_zeros_q=50_n=10.txt
rpartitions/inst/tests/testfiles/sage_zeros_q=100_n=20.txt
rpartitions/inst/tests/test_rpartitions.R
rpartitions/inst/tests/run-all.R
rpartitions/src
rpartitions/src/partitions.c
rpartitions/NAMESPACE
rpartitions/R
rpartitions/R/rpartitions.R
rpartitions/R/rpartitions-package.r
rpartitions/README.md
rpartitions/MD5
rpartitions/DESCRIPTION
rpartitions/man
rpartitions/man/rpartitions.Rd
rpartitions/man/last.Rd
rpartitions/man/P.Rd
rpartitions/man/bottom_up.Rd
rpartitions/man/top_down.Rd
rpartitions/man/multiplicity.Rd
rpartitions/man/get_multiplicity.Rd
rpartitions/man/divide_and_conquer.Rd
rpartitions/man/NrParts.Rd
rpartitions/man/get_rand_int.Rd
rpartitions/man/conjugate.Rd
rpartitions/man/rand_partitions.Rd