Institut de Robòtica i Informàtica Industrial

GetObsModelFixedS

PURPOSE ^

Defines p(o|s).

SYNOPSIS ^

function p=GetObsModelFixedS(OM,s)

DESCRIPTION ^

   Defines p(o|s).

   Instantiates the observation model for a particular state 's'.
   In this case, the output is a vector with the size of the
   number of observation in the discrete observation space on which this
   model is defined. This vector is defined selecting the element 's' from
   the cell array of vectors (one for each observatoin) given in the
   object constructor.

   The output is normalized.

   See also DS_DO_ObsModel.

CROSS-REFERENCE INFORMATION ^

This function calls:
This function is called by:

SOURCE CODE ^

0001 function p=GetObsModelFixedS(OM,s)
0002 %   Defines p(o|s).
0003 %
0004 %   Instantiates the observation model for a particular state 's'.
0005 %   In this case, the output is a vector with the size of the
0006 %   number of observation in the discrete observation space on which this
0007 %   model is defined. This vector is defined selecting the element 's' from
0008 %   the cell array of vectors (one for each observatoin) given in the
0009 %   object constructor.
0010 %
0011 %   The output is normalized.
0012 %
0013 %   See also DS_DO_ObsModel.
0014 
0015   p=cellfun(@(x)(x(s)),OM.p);
0016   p=p/sum(p);


Institut de Robòtica i Informàtica Industrial

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