getPURPOSEGet function for DS_CO_DA_POMDPs.
SYNOPSISfunction value=get(P,field)
DESCRIPTIONGet function for DS_CO_DA_POMDPs. Get function for POMDP on discrete state, discrete action and continuous observation spaces. Possible fields to query are - StateSpace - ActionSpace - ObsSpace - ActionModel - ObsModel - RewardModel - nSampledObs - Any filed defined in higher levels of the POMDP object hierarchy See also @DS_POMDP/get, @POMDP/get CROSS-REFERENCE INFORMATIONThis function calls:
SOURCE CODE0001 function value=get(P,field) 0002 % Get function for DS_CO_DA_POMDPs. 0003 % 0004 % Get function for POMDP on discrete state, discrete action 0005 % and continuous observation spaces. 0006 % Possible fields to query are 0007 % - StateSpace 0008 % - ActionSpace 0009 % - ObsSpace 0010 % - ActionModel 0011 % - ObsModel 0012 % - RewardModel 0013 % - nSampledObs 0014 % - Any filed defined in higher levels of the POMDP object hierarchy 0015 % 0016 % See also @DS_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.DS_DA_ActionModel; 0026 case 'ObsModel' 0027 value=P.DS_CO_ObsModel; 0028 case 'RewardModel' 0029 value=P.DS_DA_RewardModel; 0030 otherwise 0031 value=get(P.DS_CO_POMDP,field); 0032 end |