Institut de Robòtica i Informàtica Industrial

Reward

PURPOSE ^

Evaluates the reward function.

SYNOPSIS ^

function r=Reward(RM,a,s)

DESCRIPTION ^

   Evaluates the reward function.

   Returns the value of the reward function for a given state 's' and
   action 'a'.

CROSS-REFERENCE INFORMATION ^

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

SOURCE CODE ^

0001 function r=Reward(RM,a,s)
0002 %   Evaluates the reward function.
0003 %
0004 %   Returns the value of the reward function for a given state 's' and
0005 %   action 'a'.
0006 
0007   r=sum(RM.w.*cellfun(@(g)(Value(g,a)),RM.gA).*cellfun(@(g)(Value(g,s)),RM.gS));
0008


Institut de Robòtica i Informàtica Industrial

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