randPURPOSERandom state from a continuous space.
SYNOPSISfunction v=rand(CS)
DESCRIPTIONRandom state from a continuous space. Generates a random point in the bounds of the given continuous space sampling with uniform probability. CROSS-REFERENCE INFORMATIONThis function calls:
SOURCE CODE0001 function v=rand(CS) 0002 % Random state from a continuous space. 0003 % 0004 % Generates a random point in the bounds of the given continuous space 0005 % sampling with uniform probability. 0006 % 0007 v=CS.min+rand(CS.dim,1).*CS.range; 0008 |