getPURPOSEGet function for CS_DO_CA_POMDPs.
SYNOPSISfunction value=get(P,field)
DESCRIPTIONGet function for CS_DO_CA_POMDPs. Get function for POMDP on continuous state spaces but on discrete action and observation spaces. Possible fields to query are - StateSpace - ActionSpace - ObsSpace - ActionModel - ObsModel - RewardModel - nSampledActions - Any filed defined in higher levels of the POMDP object hierarchy See also @CS_POMDP/get, @POMDP/get CROSS-REFERENCE INFORMATIONThis function calls:
SOURCE CODE0001 function value=get(P,field) 0002 % Get function for CS_DO_CA_POMDPs. 0003 % 0004 % Get function for POMDP on continuous state spaces but on discrete action 0005 % and observation spaces. 0006 % Possible fields to query are 0007 % - StateSpace 0008 % - ActionSpace 0009 % - ObsSpace 0010 % - ActionModel 0011 % - ObsModel 0012 % - RewardModel 0013 % - nSampledActions 0014 % - Any filed defined in higher levels of the POMDP object hierarchy 0015 % 0016 % See also @CS_POMDP/get, @POMDP/get 0017 switch field 0018 case 'StateSpace' 0019 value=P.S; 0020 case 'ActionSpace' 0021 value=P.A; 0022 case 'ObsSpace' 0023 value=P.O; 0024 case 'ActionModel' 0025 value=P.CS_CA_ActionModel; 0026 case 'ObsModel' 0027 value=P.CS_DO_ObsModel; 0028 case 'RewardModel' 0029 value=P.CS_CA_RewardModel; 0030 case 'nSampledActions' 0031 value=P.nSampledActions; 0032 otherwise 0033 value=get(P.CS_DO_POMDP,field); 0034 end |