Institut de Robòtica i Informàtica Industrial

UniformDistribution

PURPOSE ^

Uniform probability on a discrete space.

SYNOPSIS ^

function [p v]=UniformDistribution(DS)

DESCRIPTION ^

   Uniform probability on a discrete space.
  
   Generates a uniform distribution on the given discrete space.
   The output is a column vector with the size of the dimensionality of
   the given discrete space with all entries with the same value (that
   given by the UniformProbability function).

   See also @DSpace/UniformProbability.

CROSS-REFERENCE INFORMATION ^

This function calls:
This function is called by:

SOURCE CODE ^

0001 function [p v]=UniformDistribution(DS)
0002 %   Uniform probability on a discrete space.
0003 %
0004 %   Generates a uniform distribution on the given discrete space.
0005 %   The output is a column vector with the size of the dimensionality of
0006 %   the given discrete space with all entries with the same value (that
0007 %   given by the UniformProbability function).
0008 %
0009 %   See also @DSpace/UniformProbability.
0010 
0011   p=ones(DS.max,1)/DS.max;
0012   v=1/DS.max;


Institut de Robòtica i Informàtica Industrial

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