RPG Lab

版本 1.2.0.0 (834.2 KB) 作者: Derek O'Connor
A set of functions for generating and testing random permutations of the integers (1,2, ..., n).
580.0 次下载
更新时间 2011/1/26

查看许可证

The main functions provided are:

1. p = GRPfys(n); generates a random permutation of length n.

2. p = GRPmex(n); generates a random permutation of length n.

3. p = GRDrej(n); generates a derangement of length n.

4. p = GRDmex(n); generates a derangement of length n.

5. p = GRDMPP(p); generates a derangement of length n.

6. p = GRPcyc(p); generates a cyclic permutation of length n.

7. Various interrogation functions, e.g., IsCyc(p).

Included is a set of notes on Random Permutations and their implementation and testing.

引用格式

Derek O'Connor (2024). RPG Lab (https://www.mathworks.com/matlabcentral/fileexchange/30101-rpg-lab), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2008a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.2.0.0

Changed package name from RPGTools to RPGLab. Updated notes to RPGLabNotes1.1.pdf

1.0.0.0