Evaluates the reward function. Returns the value of the reward function for a given state 's' and action 'a'.
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=Value(RM.r{a},s); 0008