A set of tools to permute multisets without loops or hash tables and to generate integer partitions. The permutation functions are based on C code from Aaron Williams. Cool-lex order is similar to colexicographical order. The algorithm is described in Williams, A. (2009) <DOI:10.1145/1496770.1496877> Loopless Generation of Multiset Permutations by Prefix Shifts. Symposium on Discrete Algorithms, New York, United States. The permutation code is distributed without restrictions. The code for stable and efficient computation of multinomial coefficients comes from Dave Barber. The code can be download from <http://tamivox.org/dave/multinomial/code.html> and is distributed without conditions. The package also generates the integer partitions of a positive, non-zero integer n. The C++ code for this is based on Python code from Jerome Kelleher which can be found here <http://jeromekelleher.net/tag/integer-partitions.html>. The C++ code and Python code are distributed without conditions.

Install the latest version of this package by entering the following in R:

`install.packages("multicool")`

Author | James Curran, Aaron Williams, Jerome Kelleher, Dave Barber |

Date of publication | 2016-11-25 23:05:03 |

Maintainer | James Curran <j.curran@auckland.ac.nz> |

License | GPL-2 |

Version | 0.1-10 |

**allPerm:** Generate and return all permutations of a multiset

**Bell:** Compute the Bell numbers

**genComp:** Generate all, or a subset, of the integer partitions of an...

**initMC:** Initialise the permutation object

**multinom:** Calculate multinomial coefficients

**nextPerm:** Return the next permutation of the multiset

**Stirling2:** Compute Stirling numbers of the second kind

src

src/multicool.cpp

src/multinomial.h

src/compositions.cpp

src/RcppExports.cpp

NAMESPACE

R

R/genComp.R
R/nextPerm.R
R/multinom.R
R/Stirling2.R
R/initMC.r
R/RcppExports.R
R/allPerm.R
R/zzz.R
README.md

MD5

DESCRIPTION

man

man/Bell.Rd
man/initMC.Rd
man/multinom.Rd
man/allPerm.Rd
man/Stirling2.Rd
man/genComp.Rd
man/nextPerm.Rd
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.