522b32b5 software
522b32b5
Added: July 21, 2013 | Visits: 308
Randomly pick n from size(h)>=nelements, biased with linear weights asgiven in h, without replacement.Works with infinity and zero weightingentries, but always picks themsequentially in this case.Syntax: Y=randweightedpick(h,n)Example:randweightedpick([2,0,5,Inf,3,Inf,0],7)returns [4,6,...,2,7]...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Random Weighted Selection Download |