comb.summands: Combinations of fixed number of summands with pre-defined...

Description Usage Arguments Details Value Author(s) References

View source: R/comb.summands.R

Description

Returns all combinations of k numbers between 0 and n whose sum equals n.

Usage

1

Arguments

n

the sum of the k summands

k

the number of summands

Details

Returns all combinations of k numbers (non-negative integers) between 0 and n whose sum equals n. The order of the summands matters, i.e. 2+3=5 and 3+2=5 would count as two different combinations.

Value

A matrix with k columns. Each row contains a different combination of k non-negative integers which sum up to n.

Author(s)

Christoph Kurz

References

"Parameterizing cell-to-cell regulatory heterogeneities via stochastic transcriptional profiles" by Sameer S Bajikar*, Christiane Fuchs*, Andreas Roller, Fabian J Theis^ and Kevin A Janes^: PNAS 2014, 111(5), E626-635 (* joint first authors, ^ joint last authors) <doi:10.1073/pnas.1311647111>

"Pheno-seq - linking visual features and gene expression in 3D cell culture systems" by Stephan M. Tirier, Jeongbin Park, Friedrich Preusser, Lisa Amrhein, Zuguang Gu, Simon Steiger, Jan-Philipp Mallm, Teresa Krieger, Marcel Waschow, Bjoern Eismann, Marta Gut, Ivo G. Gut, Karsten Rippe, Matthias Schlesner, Fabian Theis, Christiane Fuchs, Claudia R. Ball, Hanno Glimm, Roland Eils & Christian Conrad: Sci Rep 9, 12367 (2019) <doi:10.1038/s41598-019-48771-4>


lisaamrhein/stochprofML documentation built on Dec. 25, 2021, 9:02 p.m.