GetRewardModelFixedAPURPOSEDefines the reward function for a given action.
SYNOPSISfunction ra=GetRewardModelFixedA(RM,a)
DESCRIPTIONDefines the reward function for a given action. Particularizes a reward function defined on continuous state and action spaces for a particular action 'a'. The particularization is obtained by evaluating the Gaussians in 'a' given when defining the model. The result is a Gaussian mixture in 's'. See also CS_CA_RewardModel. CROSS-REFERENCE INFORMATIONThis function calls: This function is called by:
SOURCE CODE0001 function ra=GetRewardModelFixedA(RM,a) 0002 % Defines the reward function for a given action. 0003 % 0004 % Particularizes a reward function defined on continuous state and action 0005 % spaces for a particular action 'a'. 0006 % 0007 % The particularization is obtained by evaluating the Gaussians in 'a' 0008 % given when defining the model. The result is a Gaussian mixture in 's'. 0009 % 0010 % See also CS_CA_RewardModel. 0011 0012 w=RM.w.*cellfun(@(x)(Value(x,a)),RM.gA); 0013 ra=GMixture(w,RM.gS); 0014 0015 |