| Table of Contents ▸ List of Commands ▸ Reptorian's Commands ▸ rep_ncr_combinations | ◀ rep_r_permutation_list2index | rep_ncr_combination_index2list ▶ |
rep_ncr_combinations
Arguments:
- number_of_items>0,choices>0,_axis={x,y,z} or
- choices>0, number_of_items>0,_axis={x,y,z}
Description:
Generates all combinations that fits nCr. The algorithm used for this is based on Algorithm 515 (Buckles and Lybanon 1977) which allows index-based generation of combinations.Code has been adapted from sleeepjack's Python 2 code executing Algorithm 515 only in case when non-zero index is used to find combination at a point - https://github.com/sleeepyjack/alg515/blob/master/python/alg515.py
Note: If $2 is greater than $1, then $2 is number of items and $1 is choices. Only positive integer numbers are accepted!
Note #2: If _axis is not x,y,or z, then returns quantity only.
Default values:
_axis=x


Home
Download
News
Mastodon
Bluesky
X
Summary - 18 Years
Summary - 17 Years
Summary - 16 Years
Summary - 15 Years
Summary - 13 Years
Summary - 11 Years
Summary - 10 Years
Resources
Technical Reference
Scripting Tutorial
Video Tutorials
Wiki Pages
Image Gallery
Color Presets
Using libgmic
G'MIC Online
Community
Discussion Forum (Pixls.us)
GimpChat
IRC
Report Issue