Institut de Robòtica i Informàtica Industrial

GetRewardModelFixedA

PURPOSE ^

Defines the reward function for a given action.

SYNOPSIS ^

function ra=GetRewardModelFixedA(RM,a)

DESCRIPTION ^

   Defines the reward function for a given action.

   Particularizes a reward function defined on discrete state and
   continuous action spaces for a particular action 'a'.

   The particularization is obtained evaluating the set of Gaussian
   mixtures in 'a' for the different states. The result is a column vector
   with the same dimension as number of states in the state space.

   See also DS_CA_RewardModel.

CROSS-REFERENCE INFORMATION ^

This function calls:
  • Value Evaluates a GMixture.
  • Value Evaluation of a Gaussian.
This function is called by:

SOURCE CODE ^

0001 function ra=GetRewardModelFixedA(RM,a)
0002 %   Defines the reward function for a given action.
0003 %
0004 %   Particularizes a reward function defined on discrete state and
0005 %   continuous action spaces for a particular action 'a'.
0006 %
0007 %   The particularization is obtained evaluating the set of Gaussian
0008 %   mixtures in 'a' for the different states. The result is a column vector
0009 %   with the same dimension as number of states in the state space.
0010 %
0011 %   See also DS_CA_RewardModel.
0012 
0013   ra=cellfun(@(x)(Value(x,a)),RM.r)';
0014


Institut de Robòtica i Informàtica Industrial

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