DS_CA_ActionModelPURPOSEDS_CA_ActionModel constructor.
SYNOPSISfunction AM=DS_CA_ActionModel(varargin)
DESCRIPTIONDS_CA_ActionModel constructor. Defines an Action Model on discrete state and continuous action spaces. Parameters: S: The continuous state space A: The discrete action space T: Cell{nextState,currentState} of GMixtures in 'a'. Note: This type of action models is not used in the current implementation and, thus, is not fully debugged. This action model is to be used when replicationg in the Vlassis and Spaan (JAIR 2005 Section 5.2). CROSS-REFERENCE INFORMATIONThis function calls:
SOURCE CODE0001 function AM=DS_CA_ActionModel(varargin) 0002 % DS_CA_ActionModel constructor. 0003 % 0004 % Defines an Action Model on discrete state and continuous action spaces. 0005 % Parameters: 0006 % S: The continuous state space 0007 % A: The discrete action space 0008 % T: Cell{nextState,currentState} of GMixtures in 'a'. 0009 % 0010 % Note: This type of action models is not used in the current 0011 % implementation and, thus, is not fully debugged. 0012 % This action model is to be used when replicationg in the Vlassis 0013 % and Spaan (JAIR 2005 Section 5.2). 0014 0015 0016 switch nargin 0017 case 1 0018 if isa(varargin{1},'DS_CA_ActionModel') 0019 AM=varargin{1}; 0020 else 0021 error('Wrong parameter type in DS_CA_ActionModel constructor'); 0022 end 0023 case 3 0024 if isa(varargin{1},'DSpace') 0025 AM.S=varargin{1}; 0026 else 0027 error('Wrong parameter type in DS_CA_ActionModel constructor'); 0028 end 0029 0030 if isa(varargin{2},'CSpace') 0031 AM.A=varargin{2}; 0032 else 0033 error('Wrong parameter type in DS_CA_ActionModel constructor'); 0034 end 0035 0036 if isa(varargin{3},'cell') 0037 AM.T=varargin{3}; 0038 else 0039 error('Wrong parameter type in DS_CA_ActionModel constructor'); 0040 end 0041 0042 if dim(AM.S)~=size(RM.T,1) || dim(AM.S)~=size(RM.T,2) 0043 error('Size missmatch in DS_CA_ActionModel'); 0044 end 0045 0046 AMBase=ActionModel(); 0047 0048 AM=class(AM,'DS_CA_ActionModel',AMBase); 0049 0050 otherwise 0051 error('Wrong number of parameters in DS_CA_ActionModel constructor'); 0052 end 0053 |