RouletteWheelSelection.m
Version 1.1.0.0 (692 Bytes) by
Jonathan O'Keeffe
Debugged version of RouletteWheelSelection
input an array of probabilities or fitness scores (i.e. best has highest score and chance of being picked). output is an index selected according to a normalised distribution over the indices. i.e. Roulette Wheel Selection in evolutionary computing.
Cite As
Jonathan O'Keeffe (2024). RouletteWheelSelection.m (https://www.mathworks.com/matlabcentral/fileexchange/46734-roulettewheelselection-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: roulette wheel selection
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.