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  20131211 07:34:59 
Maintainer  Daniel McGlinn <danmcglinn@gmail.com> 
License  MIT 
Version  0.1 
URL  https://github.com/klocey/partitions 
Package repository  View on CRAN 
Installation  Install the latest version of this package by entering the following in R:



All man pages Function index File listing
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... 
Functions  

NrParts  Man page Source code 
P  Man page Source code 
bottom_up  Man page Source code 
conjugate  Man page Source code 
divide_and_conquer  Man page Source code 
get_multiplicity  Man page Source code 
get_rand_int  Man page Source code 
last  Man page Source code 
multiplicity  Man page Source code 
rand_partitions  Man page Source code 
rpartitions  Man page 
rpartitionspackage  Man page 
top_down  Man page Source code 
Files  

inst
 
inst/CITATION
 
inst/tests
 
inst/tests/testfiles
 
inst/tests/testfiles/sage_q=50_n=10.txt
 
inst/tests/testfiles/sage_q=200_n=40.txt
 
inst/tests/testfiles/sage_q=100_n=20.txt
 
inst/tests/testfiles/sage_zeros_q=200_n=40.txt
 
inst/tests/testfiles/sage_zeros_q=50_n=10.txt
 
inst/tests/testfiles/sage_zeros_q=100_n=20.txt
 
inst/tests/test_rpartitions.R  
inst/tests/runall.R  
src
 
src/partitions.c
 
NAMESPACE
 
R
 
R/rpartitions.R  
R/rpartitionspackage.r  
README.md  
MD5
 
DESCRIPTION
 
man
 
man/rpartitions.Rd  
man/last.Rd  
man/P.Rd  
man/bottom_up.Rd  
man/top_down.Rd  
man/multiplicity.Rd  
man/get_multiplicity.Rd  
man/divide_and_conquer.Rd  
man/NrParts.Rd  
man/get_rand_int.Rd  
man/conjugate.Rd  
man/rand_partitions.Rd 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs in the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.