![]() |
UniformDistributionPURPOSE
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:
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; |