| Table of Contents ▸ List of Commands ▸ Reptorian's Commands ▸ rep_ncr_combination_index2list | ◀ rep_ncr_combinations | rep_ncr_combination_list2index ▶ |
rep_ncr_combination_index2list
Arguments:
- number_of_items,choices,index or
- choices, number_of_items,index
Description:
Return ncr combination at index. 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 - 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!


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