Institut de Robòtica i Informàtica Industrial

set

PURPOSE ^

Set function for PODMP (base type)

SYNOPSIS ^

function P=set(P,field,value)

DESCRIPTION ^

 Set function for PODMP (base type) 
 
 Allows to change some fields of the basic POMDP structure

 Possible fields to change are
    - gamma (discount factor)
    - name (name given to the POMDP. Used to generate output files).

CROSS-REFERENCE INFORMATION ^

This function calls:
This function is called by:

SOURCE CODE ^

0001 function P=set(P,field,value)
0002 % Set function for PODMP (base type)
0003 %
0004 % Allows to change some fields of the basic POMDP structure
0005 %
0006 % Possible fields to change are
0007 %    - gamma (discount factor)
0008 %    - name (name given to the POMDP. Used to generate output files).
0009 
0010   switch field
0011     case 'gamma'
0012       P.gamma=value;
0013     case 'name'
0014       P.name=value;
0015     otherwise
0016       error('Unknown field in POMDP set');
0017   end
0018 
0019


Institut de Robòtica i Informàtica Industrial

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