Discrete random element selection based on a user-specified distribution

Version 1.0.0.0 (563 Bytes) by Christopher
Returns random elements from a set of discrete points according to a user-specified distribution.
721 Downloads
Updated 24 Mar 2009

No License

The function takes as input a list of points (ids) and for each point a likelihood that it is selected randomly. The output is an array with random values which are distributed according to the input.

More information and example usage is provided at:
http://www.medical-image-processing.com/programming/discrete-random-element-selection-based-on-a-user-specified-probability

Cite As

Christopher (2024). Discrete random element selection based on a user-specified distribution (https://www.mathworks.com/matlabcentral/fileexchange/23412-discrete-random-element-selection-based-on-a-user-specified-distribution), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Creating and Concatenating Matrices in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0