Institut de Robòtica i Informàtica Industrial

Discretize

PURPOSE ^

Discretizes the state space of the CS_DO_DA_POMDP.

SYNOPSIS ^

function DP=Discretize(CP,n)

DESCRIPTION ^

  Discretizes the state space of the CS_DO_DA_POMDP.

  Converts a POMDP on a continuous state space (but discrete actions and
  observations) into a POMDP on a discrete state space.
  Parameter 'n' is the number of states of the output state space.
  This procedure samples 'n' states (uniformly for one-dimensional
  continuous state spaces and randomly for higher dimenional spaces) and
  adjust the action/observation/reward models acordingly.
  The name given to the output POMDP is the same as that of the input
  POMDP but adding '-discrete' at the end. Remember that this name is used
  to generate files of planning results.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function DP=Discretize(CP,n)
0002 %  Discretizes the state space of the CS_DO_DA_POMDP.
0003 %
0004 %  Converts a POMDP on a continuous state space (but discrete actions and
0005 %  observations) into a POMDP on a discrete state space.
0006 %  Parameter 'n' is the number of states of the output state space.
0007 %  This procedure samples 'n' states (uniformly for one-dimensional
0008 %  continuous state spaces and randomly for higher dimenional spaces) and
0009 %  adjust the action/observation/reward models acordingly.
0010 %  The name given to the output POMDP is the same as that of the input
0011 %  POMDP but adding '-discrete' at the end. Remember that this name is used
0012 %  to generate files of planning results.
0013 %
0014   nameC=get(CP,'name');
0015   
0016   CS=get(CP,'StateSpace');
0017   CA=get(CP,'ActionSpace');
0018   CO=get(CP,'ObsSpace');
0019   
0020   COM=get(CP,'ObsModel');
0021   CAM=get(CP,'ActionModel');
0022   CRM=get(CP,'RewardModel');
0023   
0024   DS=Discretize(CS,n);
0025   DA=CA;
0026   DO=CO;
0027   
0028   DAM=DiscretizeActionModel(CAM,DS);
0029   DOM=DiscretizeObsModel(COM,DS);
0030   DRM=DiscretizeRewardModel(CRM,DS);
0031  
0032   gamma=get(CP,'gamma');
0033   
0034   nameD=sprintf('%s-discrete-%u',nameC,n);
0035   
0036   DP=DS_DO_DA_POMDP(nameD,DS,DA,DO,DAM,DOM,DRM,gamma);
0037


Institut de Robòtica i Informàtica Industrial

Generated on Wed 05-Aug-2009 15:05:21 by m2html © 2003