RewardPURPOSEEvaluates the reward function.
SYNOPSISfunction r=Reward(RM,a,s)
DESCRIPTIONEvaluates the reward function. Returns the value of the reward function for a given state 's' and action 'a'. CROSS-REFERENCE INFORMATIONThis function calls:
SOURCE CODE0001 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=RM.r{a}(s); 0008 |