Institut de Robòtica i Informàtica Industrial

rand

PURPOSE ^

Random state from a discrete space.

SYNOPSIS ^

function v=rand(DS)

DESCRIPTION ^

   Random state from a discrete space.
 
   Selects one of the possible values of the given discrete space randomly
   with uniform probability.

   See also DSpace.

CROSS-REFERENCE INFORMATION ^

This function calls:
  • rand Random state from a discrete belief.
  • rand Random state from a belief.
  • rand Generates random points on a GMixture.
  • rand Generates random ponts on a Gaussian.
  • rand Random state from a continuous space.
  • rand Random state from a discrete space.
This function is called by:
  • Prediction Belief evolution under the given action.
  • Prediction Belief evolution under the given action.
  • Prediction Belief evolution given a transition model.
  • Update Belief evolution under an observation model.
  • MakeFigure3 Generates Figure 3.
  • CompressGR Gaussian mixture compression using the Golberger and Roweis method.
  • rand Generates random points on a GMixture.
  • RandVector Selects and element from a discrete probability distribution.
  • CS_CO_ObsModel CS_CO_ObsModel constructor.
  • CS_DO_ObsModel CS_DO_ObsModel constructor.
  • DiscretizeObsModel Discretizes the observation model on the observation side.
  • Perseus The Perseus point-based POMDP solver.
  • RandomAction Draws a random action from a POMDP.
  • SampleBeliefs Samples a set of beliefs from a POMDP.
  • SimulateFrom Simulates a POMDP from a given belief.
  • SimulationStep Executes one step of a POMDP simulation.
  • iPerseus Improved version of Perseus.
  • Discretize Converts a continuous space into a discrete one.
  • rand Random state from a continuous space.
  • rand Random state from a discrete space.

SOURCE CODE ^

0001 function v=rand(DS)
0002 %   Random state from a discrete space.
0003 %
0004 %   Selects one of the possible values of the given discrete space randomly
0005 %   with uniform probability.
0006 %
0007 %   See also DSpace.
0008 
0009   v=ceil(rand*DS.max);
0010


Institut de Robòtica i Informàtica Industrial

Generated on Wed 05-Aug-2009 15:05:21 by m2html © 2003