RPG Lab
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.
Cita come
Derek O'Connor (2025). RPG Lab (https://it.mathworks.com/matlabcentral/fileexchange/30101-rpg-lab), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxTag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
